Most voted "telegram-bot" questions
The Bot API is an HTTP-based interface created for developers interested in building bots (robots) for Telegram. Use this tag if you are writing a bot for Telegram and have a specific question about the Bot API.
Learn more…16 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
answer302
viewsImport chatterbot bot to Telegram
I don’t know if that kind of question is welcome here, but come on: I’m developing a chatbot on python and chose the library chatterbot because of the processamento de linguagem natural, by the…
-
1
votes1
answer1144
viewsImport: No module named 'telebot'
Hello! I am configuring the bot to send Zabbix alerts, I have installed Python and the necessary modules: sudo apt install python python-pip python-setuptools Then I installed the bot API to use in…
-
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
answer92
viewsIs there any way to create different tables in SQLITE3 through the same python function?
I’m creating a python bot through the python-Telegram-bot library, and it works through commands. I know that through 'cursor.execute()' I can create a table via python, but the real question is: is…
-
0
votes1
answer679
viewsIs there any way to send an attachment along with the BOT message from Telegram?
I am using the Telegram API to send error logs from my applications. I display some key information but would also like to display the trace exception. The problem is that Telegram returns an error…
-
0
votes0
answers52
viewsTelegram bot sends message correctly, but then sends an error: "Something Went Wrong, Please Try Again."
Please help me, suddenly my Telegram bot on Heroku is sending the correct message and below an error! Output Result on Telegram channel: aaaaaa Something went wrong, please try again. The tickle:…
-
0
votes1
answer355
viewsChatbot respond only when a specific word is contained in the sentence
I’m creating a Chatbot in Telegram that can answer questions from group users. The bot needs a keyword to start chatting. That word would be his name, "Joker". Thus, only when the word Joker is…
-
0
votes1
answer42
viewsAsync and Tkinter function
I’m trying to integrate the async function of the Telethon below to the command of a button on the Tkinter, but I don’t know how to proceed... The function below works for sending message at 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
answer45
viewsReverse dialogue on Watson’s integration with Telegram
When starting the conversation with Watson the messages appear reversed, first he should say: Hello, Alexandre, I’m Jairo! only after saying: I’m here to remind you [...] This integration was done…
-
-1
votes1
answer201
viewsReceive information from Telebot
I’m developing a Telegram bot and part of it is already functional. Now, I need to receive a user input with questions that the system asks so that I can further automate the processes. In the…
-
-2
votes1
answer148
viewsExpect user response in Telegram - Python
How can I expect user response after executing a command? I am using Python 3.6 and the lib Telegram-bot-python. Example: usuario - /apel bot - Qual o seu apelido? usuario - dfop bot - Uau, seu…
-
-2
votes2
answers716
viewsAttributeerror: str Object has no attribute 'Confidence'
I’m developing a chatbot and I wish it would only respond if it had determined level of confidence in the answer. # -*- codding: utf-8 -*- import os import telebot from chatterbot import ChatBot…
-
-2
votes1
answer29
viewsHow to validate functions all the time using PHP. To forward messages and notifications
I would like good practice guidelines for my project, I am structuring a server that will do validations all the time, to forward notifications and also messages to various sectors of a Company.…
-
-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…