Warning: file_get_contents(/data/phpspider/zhask/data//catemap/7/css/34.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
Python 如何正确使用焦图中的函数?_Python_Telegram_Pyrogram - Fatal编程技术网

Python 如何正确使用焦图中的函数?

Python 如何正确使用焦图中的函数?,python,telegram,pyrogram,Python,Telegram,Pyrogram,有时,当我在pyrogram中使用函数时,我会收到以下输出: { "_": functionName, "argName" : value, "arg2Name" : value2, # etc. } 例如,如果我写: functions.users.GetFullUser(types.InputUserSelf()) 我收到: { "_": "functions.users.GetFullUser", "id": { "_":

有时,当我在
pyrogram
中使用函数时,我会收到以下输出:

{
    "_": functionName,
    "argName" : value,
    "arg2Name" : value2,
    # etc.
}
例如,如果我写:

functions.users.GetFullUser(types.InputUserSelf())
我收到:

{
    "_": "functions.users.GetFullUser",
    "id": {
        "_": "types.InputUserSelf"
    }
}
为什么我会收到这个结果?我应该如何正确使用这些函数?

您应该使用send()


你的问题是什么?
from pyrogram import Client
from pyrogram.api import functions

app = Client("test")
result = app.send(functions.users.GetFullUser(types.InputUserSelf()))
print(result)