Questions tagged as 'telegram'

1
answer

How can I find the chats ID for the Telegram API?

I'm setting up the Telegram BOT API via Guzzle. I'm trying to understand what the chat_id parameter would be described in the sendMessage method documentation . I have the following code: $cli = new \GuzzleHttp\Client([ '...
asked by 14.09.2018 / 18:35
1
answer

My bot on Telegram is looping on messages

Hello, I have the following code: <?php function readUpdate($updateId) { $fh = fopen(basename(__FILE__, '.php').'.txt', 'a'); fwrite($fh, $updateId.' '); fclose($fh); } function sendMessage($chatId, $text) { if(!empty($ch...
asked by 15.04.2017 / 23:49
0
answers

My bot in Google Apps Script does not send emojis to Telegram!

I'm programming a bot on a telegram using the Google-Apps-Script language, and I need to send an emoji to a specific user at a given time. the problem is that I have tried every way, and I can not make the bot send, it returns that the text is n...
asked by 30.03.2018 / 13:55
1
answer

Telegram duplicating messages

I'm facing a problem with a Telegram API encoding. Messages are working normally, but they are all coming in duplicate, what can they be? Follow function: function sendMessage($chatID, $messaggio, $token) { $url = "https://api.telegram....
asked by 02.03.2018 / 19:20
1
answer

How to change the layout of the ReplyKeyboardMarkup / Quick Reply in api.ai to the Telegram?

ai to create a bot, using the quick reply from the service the keyboard layout (ReplyKeyboardMarkup) in the Telegram is vertical, thus cutting all messages: Inoticedthatinthe documentation of Telegram bots, you have the option of customizin...
asked by 02.03.2017 / 13:41
1
answer

Zabbix and Telegram, send alerts via script

Hello, I have set up a script to send alerts to Telegram group / user, but I do not receive alerts. When I test the script it is sent normally. IconfiguredthescriptinZabbix,informingthesettingscorrectly.Whenthealertistriggered,Zabbixreturnsm...
asked by 27.04.2018 / 21:19