Telegram Bot gets “Bad Request: message text is empty”
If the issue still persists, try to modify your curl request. For me adding header ‘Content-Type: application/json’ and -d ‘{“chat_id”:12309832,”text”:”any text”}’ fixed issue
If the issue still persists, try to modify your curl request. For me adding header ‘Content-Type: application/json’ and -d ‘{“chat_id”:12309832,”text”:”any text”}’ fixed issue
For that, you have to talk to BotFather. In the Telegram App, open the chat with BotFather. Send him /setcommands. He will present you with a list of your bots. Pick the bot for which you want to set the command menu. Compose and send the command list. Using your image as an example, these … Read more
Talk to @botfather and disable the privacy mode.
The message updates you receive via getUpdates or your webhook will contain the chat ID for the specific message. It will be contained under the message.chat.id key. This seems like the only way you are able to retrieve the chat ID. So if you want to write something where the bot initiates the conversation you … Read more
I found the way to write in private channels. You should convert it to public with some @channelName Send a message to this channel through the Bot API: https://api.telegram.org/bot111:222/sendMessage?chat_id=@channelName&text=123 As the response, you will get information with chat_id of your channel. { “ok” : true, “result” : { “chat” : { **”id” : -1001005582487,** “title” … Read more