Docs: Correct variable

This commit is contained in:
nzooherd 2024-03-23 18:43:10 +09:00 committed by GitHub
parent 38241dffd2
commit 638bfd2a82
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -242,7 +242,7 @@ In Telethon:
from telethon.events import NewMessage, filters
async def start(update: NewMessage):
await update.client.send_message(chat=update.chat.id, text="I'm a bot, please talk to me!")
await update.client.send_message(chat=update.chat, text="I'm a bot, please talk to me!")
async def main():
application = Client('bot', api_id, api_hash)