Answer the question
In order to leave comments, you need to log in
How to send a message to a telegram bot?
Tell me, is it possible to send a message to a bot through a python script?
Not by means of a regular application (I open a cart, find a bot and send him a message), but by means of a python.
I tried:
data = {"chat_id": "854030241", "text": "hi!"}
url = "https://api.telegram.org/bot1418682426:AAEEsgT0thpVK9CIKShn26SgcXF3R8Q9rjg/sendMessage"
requests.get(url, data)
Answer the question
In order to leave comments, you need to log in
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question