Creating your Bot
- First you have to open a chat with @BotFather by klicking this link.
- Now send him
- Give him a display-name for your new bot
- Give him a identifyer for your new bot (This should look like
- The BotFather sends you a link to start a chat with your bot and the api-token to access the new bot. Please note down the api-token at a safe place!
Getting the Chat-ID
- Open the link to your Bot
/startto your Bot
- Open up
- Every message comes with an
id-field. This id is the chat-id!
Now we have everything to get started with sending messages.
Easy Scripts to get started
Here are some easy scripts that I personaly use for cron-status-messages. You should replace
<chat_id> with your own values.
Send a text-message to your chat-id via
Send a file to your chat-id via