使用您的秘密创建文件:config.ini
[Telegram]
# no need for quotes
# you can get telegram development credentials in telegram API Development Tools
api_id = 1234
api_hash = 1234
# use full phone number including + and country code
phone = +4411111111111
username = session_user
Run Code Online (Sandbox Code Playgroud)
一种解决方案是这样的,do_search.py
[Telegram]
# no need for quotes
# you can get telegram development credentials in telegram API Development Tools
api_id = 1234
api_hash = 1234
# use full phone number including + and country code
phone = +4411111111111
username = session_user
Run Code Online (Sandbox Code Playgroud)
并且不要忘记始终感谢@lonami创建了这个很棒的Telethon库:)
| 归档时间: |
|
| 查看次数: |
13263 次 |
| 最近记录: |