Hello,
I hope you are doing great,
I just have a quick question, can we send messages to bots on telegram ? I have tried using the the sendMessage : Telegram but it is written, it is not possible sending messages to bots on telegram. Does someone know how can I make it happen ? Either using n8n or another way ?
Thank you for your comprehension
Yes that is certainly possible.
If you provide your workflow we can have a look for what is going wrong
Use the ‘</>’ button and paste your workflow
The steps to make it work:
-
create a chatbot using BotFather
type. /newbot and follow the instructions -
Telegram SendMessage node will need the access token
-
Telegram SendMessage node also needs your chat id
You could find it using Telegram Bot Raw
Within the JSON there is an id in ‘from’ / ‘in’ -
Make sure you use https, so on local host use ngrok or otherwise
if this anwers your question then please hit the ‘solution’ button
But, if I want to send a message to a bot on telegram that isn’t mine, therefore it isn’t possible as I don’t have the access token. For exemple if I want to send a message to a telegram crypto bot, lets take @TradeWiz_Solbot, it is possible, even if I have only the user_id ( that Telegram bot eaw gave me ) and not the access token ?
If the bot is part of a group you should be able to send a message to the group, for which you then would nee the group chat id,
Please refer to the documentation for other options.
Usernames are only possible for public channels