Output
JavaScript
x
3
1
aaaaaa
2
Something went wrong, please try again.
3
Code:
JavaScript
1
10
10
1
import telegram
2
3
TOKEN = "xxxxxxxxxxxxxY"
4
bot = telegram.Bot(TOKEN)
5
print("Bot connected!")
6
chat_id = "@News"
7
8
texto = 'aaaaaa'
9
bot.send_message(chat_id, texto, parse_mode='markdown', disable_web_page_preview=True)
10
requirements.txt python-telegram-bot
How can I fix this?
Advertisement
Answer
I guess someone scraped your bot token from a public repository and tried to steal your bot. Please, do not save your bot token in a public repository!
Solution: Revoke your token and don’t save it in a public repository.