flexibad.blogg.se

Linux telegram bot
Linux telegram bot







linux telegram bot

In order to get the needed information from the system, like CPU, RAM etc. I will divide each feature of this system into a specific module. The architecture of the system is quite simple.

linux telegram bot

I designed this simple program to make use of the Telegram API and send me information directly to my Telegram account. In order to be notified immediately of a particular circumstance, I need something to act immediately and send that information directly to me. which in some extreme situations, needs to be managed, in some sense, directly by me. In my particular case, I have important information like CPU usage, RAM usage, CPU temperature, etc. This can be very useful, especially in system administration. The contents of these messages shall be acquired from files within a specific directory. The main goal of the program that I will be showing here is to send messages to a particular char in Telegram. Keep your token secure and store it safely, it can be used by anyone to control your bot. The token is a string along the lines of 110201543:AAHdqTcvCH1vGWJxfSeofSAs0K5PALDsaw that is required to authorize the bot and send requests to the Bot API.Your bot’s username must end in ‘bot’, e.g. Usernames are 5–32 characters long and are case insensitive, but may only include Latin characters, numbers, and underscores. The Username is a short name, to be used in mentions and t.me links.The name of your bot is displayed in contact details and elsewhere.The important parameters (as listed in the original documentation) for any Telegram Bot are shown below : The token usually is a string with the following format: : Only through the token can one access the capabilities of the bot and program specialized software for bot management. The most important piece of information regarding your bot is the TOKEN. After all the above steps have been completed successfully, Bot Father will display general information about the newly created bot. The third step is to provide the newly created Bot with a display name and a username. Then send the command /newbot( strings starting with “/” represent commands to be executed by the bots ) to the chat with Bot Father. As described in the Bot Father section, the first step in creating a Bot is to open a chat with Bot Father - Telegrams specialized Frond-end for creating other bots.









Linux telegram bot