From bf3e3d8797826f840b4012b638711173af335f49 Mon Sep 17 00:00:00 2001 From: nzooherd <83459211+nzooherd@users.noreply.github.com> Date: Wed, 27 Mar 2024 04:31:54 +0900 Subject: [PATCH] Fix typo in docs example (#4331) --- 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)