Skip to content

Commit c40eb8f

Browse files
author
Pietro Albini
committed
Update documentation about how to send messages to channels
1 parent 1bbcf0c commit c40eb8f

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

docs/channels.rst

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -80,6 +80,6 @@ cites botogram in a chat, you can do this:
8080
if message.sender.username is not None:
8181
user = message.sender.username
8282
83-
bot.send("@my_channel", "%s mentioned botogram!" % user)
83+
bot.chat("@my_channel").send("%s mentioned botogram!" % user)
8484
8585
.. _@botfather: https://telegram.me/botfather

0 commit comments

Comments
 (0)