We are interested in the property result.message[0].chat.id, save
this information elsewhere.
Please note that this is only an example, you may want to set up some
automatism to handle those informations Now how we can send a message
? It's simple let's check out this snippet.
curl -s \
-X POST \ https://api.telegram.org/bot<token>/sendMessage \
-d text="A message from your bot" \
-d chat_id=65535 \ | jq .
Where chat_id is the piece of information saved before.
search for your bot like @your_bot_name, and click add:**
* In some platforms like mac native telegram client it may look like that you can add bot as a member, but at the end it won't work.
** the bot doesn't need to be in your contact list.