From 638bfd2a823e1c15f547db28aaf534ca932fc944 Mon Sep 17 00:00:00 2001 From: nzooherd <83459211+nzooherd@users.noreply.github.com> Date: Sat, 23 Mar 2024 18:43:10 +0900 Subject: [PATCH] Docs: Correct variable --- client/doc/concepts/botapi-vs-mtproto.rst | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/client/doc/concepts/botapi-vs-mtproto.rst b/client/doc/concepts/botapi-vs-mtproto.rst index 7bd9cdfb..ad3574b3 100644 --- a/client/doc/concepts/botapi-vs-mtproto.rst +++ b/client/doc/concepts/botapi-vs-mtproto.rst @@ -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)