We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
from telethon import TelegramClient, events
api_id = id hash_id = hash
client = TelegramClient('anon', api_id, hash_id)
@client.on(events.NewMessage(outgoing=True, pattern=r'.save')) async def handler(event): if event.is_reply: replied = await event.get_reply_message() sender = replied.sender await client.download_profile_photo(sender) await event.respond('Saved your photo {}'.format(sender.username))
@client.on(events.)
client.start() client.run_until_disconnected()
After stopping code I was expected just stop working this, not kicking me
I ran code, then did some commands and when i closed it i logged off on my phone from telegram. That happens every time/
No response
1.35.0
3.12
Windows 10
pip install -U https://github.com/LonamiWebs/Telethon/archive/v1.zip
The text was updated successfully, but these errors were encountered:
#4051.
Sorry, something went wrong.
No branches or pull requests
Code that causes the issue
from telethon import TelegramClient, events
api_id = id
hash_id = hash
client = TelegramClient('anon', api_id, hash_id)
@client.on(events.NewMessage(outgoing=True, pattern=r'.save'))
async def handler(event):
if event.is_reply:
replied = await event.get_reply_message()
sender = replied.sender
await client.download_profile_photo(sender)
await event.respond('Saved your photo {}'.format(sender.username))
@client.on(events.)
client.start()
client.run_until_disconnected()
Expected behavior
After stopping code I was expected just stop working this, not kicking me
Actual behavior
I ran code, then did some commands and when i closed it i logged off on my phone from telegram. That happens every time/
Traceback
No response
Telethon version
1.35.0
Python version
3.12
Operating system (including distribution name and version)
Windows 10
Other details
No response
Checklist
pip install -U https://github.com/LonamiWebs/Telethon/archive/v1.zip
and triggered the bug in the latest version.The text was updated successfully, but these errors were encountered: