Answer the question
In order to leave comments, you need to log in
Why is sendMessage not sent to telegram API with message text is empty error?
DD.
I created a bot and a group in the cart. Added the bot to the group as an admin.
I'm trying to send a message via the dock:
https://core.telegram.org/bots/api#sendmessage
curl --request POST https://api.telegram.org/bot{TOKEN}/sendMessage \
--data-raw '{
"chat_id": "@{GROUP}",
"text": "hoylalaley"
}'
curl https://api.telegram.org/bot{TOKEN}/[email protected]{GROUP}&text=hoylalaley
curl -X POST \
-H 'Content-Type: application/json' \
-d '{"chat_id": "@{CHAT_NAME}", "text": "This is a test from curl"}' \
https://api.telegram.org/[email protected]{BOT_TOKEN}/sendMessage
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