[QUESTION] Send a simple message on a channel #2278
Replies: 4 comments 4 replies
-
from telegram import Bot
bot = Bot('TOKEN')
bot.send_message(channel_id, message) |
Beta Was this translation helpful? Give feedback.
-
I come across this error ImportError: cannot import name 'Bot' from partially initialized module 'telegram' (most likely due to a circular import
|
Beta Was this translation helpful? Give feedback.
-
then |
Beta Was this translation helpful? Give feedback.
-
I no longer have the tax error, create a virtual environment, but now I come across this error while I am using the right channel
|
Beta Was this translation helpful? Give feedback.
-
Hello, I'm a little lost in the doc, I would just like to send a message on a channel, could someone give me a complete example with the right imports etc, thanks
Beta Was this translation helpful? Give feedback.
All reactions