Most voted "telegram" questions
Telegram is a cloud-based instant messaging service. Use this tag for questions about how to interact with Telegram, including using its official API.
Learn more…12 questions
Sort by count of
-
4
votes1
answer9432
viewsHow to discover the chat ID via the Telegram API?
I am configuring the Telegram BOT API via Guzzle. I am trying to understand what the parameter would be chat_id described in the method documentation sendMessage. I have the following code: $cli =…
-
3
votes1
answer1139
viewsMy bot in Telegram is looping messages
Hello, I have the following code: <?php function readUpdate($updateId) { $fh = fopen(basename(__FILE__, '.php').'.txt', 'a'); fwrite($fh, $updateId.' '); fclose($fh); } function…
-
2
votes1
answer182
viewsHow to simulate an input or store a future response
I’m making a Telegram chatbot via Python, through some lessons I’m doing, and in the middle of the process I came across a problem: I can’t in any way store the customer’s response in a variable.…
-
1
votes0
answers164
viewsPython Telegram Bot - I can’t send photos
I just started programming, so maybe it’s something simple. Anyway, I made a bot on Telegram to simulate a Pokemon hunt. I’m trying to implement that the bot sends a photo of Pokemon when the user…
-
0
votes1
answer126
viewsHow to change the layout of Replykeyboardmarkup/Quick Reply in api.ai for Telegram?
ai for creating a bot, when using the service’s Quick reply the keyboard layout (Replykeyboardmarkup) in Telegram is vertical, thus cutting all messages: I saw that in the documentation dos Telegram…
-
0
votes1
answer276
viewsTelegram duplicating messages
I’m facing a problem with a Telegram API encryption. It is working normally sending messages, but all are coming duplicated, which can be? Follows function: function sendMessage($chatID, $messaggio,…
-
0
votes0
answers8
viewsHow do I send messages to Telegram?
def set_chat_id(c): chat_ids.append(c) def main(): api_config = {} with open('api_config.json') as json_data: api_config = json.load(json_data) json_data.close() TOKEN =…
-
0
votes1
answer381
viewsZabbix and Telegram, sending alerts via script
Hello, I have configured a script to send alerts to Telegram group/user, but I do not receive alerts. When I test the script is sent normally. I configured the script in Zabbix, stating the…
-
0
votes1
answer124
viewsHow do I call an asynchronous corotine within a function that is initialized into a thread?
import telepot, time, threading, asyncio from telepot.loop import MessageLoop from datetime import datetime from telepot.namedtuple import ReplyKeyboardMarkup, KeyboardButton, InlineKeyboardMarkup,…
-
-1
votes1
answer344
viewsSend Photo to Telegram Bot Python
all good? I am developing a bot in Python. However, in my code I am not able to make him reply with photos. Only message. Ex. I would like to send the message "photo" and the bot send a photo. Can…
-
-1
votes1
answer99
viewsChatbot Telegram: Multiple conversations and messaging confusion
I’m making a chatbot in java on Telegram, everything flows normally, but when more than one person starts interacting with the bot, it stops working for other users, and it only works for one. I…
-
-2
votes1
answer146
viewsImport: cannot import name 'Bot' from 'Telegram'
I installed python-Telegram-bot version 13.0 and importing this error is happening. My libraries are up to date and the error continues. What am I doing wrong? from telegram.ext import…