![]() Go to the BotFather and get your Bot token and shhh… it`s a secret token.Ģ. ![]() Full information about getting updates you can find here: ġ. It helps to create an automatic bot, that will communicate with users, immediately after user writes to bot. You need webhook when you want to use your bot not only for notification. The simple getUpdate is useful when you need to send notification to the user or group in telegram from our application after some action in it. using webhook, every action with bot will send the request to our application.using /getUpdate, which will return updates, only at the moment when it was called.Now time for getting updates from telegram, because our bot will react on them. After a few simple steps it sends your authorization token of your bot. To create any bot one should start with…talking. You can read more information about making request here: The response contains a JSON object, which always has a Boolean field ‘ ok’ and may have an optional String field ‘ description’ with a human-readable description of the result. Interface supports GET and POST HTTP methods. We use simple HTTPS-interface to communicate with Telegram API servers. Users can interact with bots in two ways:Ī) send messages and commands to the bot by using chat with it ī) use to add bot to groups and use it from there Bot is a special account without the required phone number.
0 Comments
Leave a Reply. |