Questions tagged [telebot]

Telebot is a bot framework for the Telegram Bot API. The package provides a kind API for command routing, inline query requests and keyboards, as well as callbacks.

Telebot is a bot framework for the Telegram Bot API, available at https://github.com/tucnak/telebot

213 questions
1
vote
0 answers

How can I make multiple telebot handlers at once?

how can i make multiple handlers at once using the telebot library in go? i want to make a dialog between a user and a bot i was able to find something similar using python, but it didnt help me i want the user to be able to perform authorization in…
Ilya
  • 25
  • 6
1
vote
0 answers

Reactions buttons under post published by telegram bot

I am created a telegram bot which send my post to the particular channel. And I wonder how can I make it add something like like and dislike buttons under post and a counter for every reaction. I know how to create this buttons: But how to make…
1
vote
0 answers

Telebot: replying to user with the same message

I am making a translator bot with inline button using Telebot. When user sends message the bot will offer him to choose a language. And when user has chosen a language, bot should translate it. What should I write to text variable in the code…
salih19
  • 11
  • 2
1
vote
1 answer

How to put telebot function inside a thread ? python

i want to run this function in while loop to update the time always (its like an alarm system) Here is a piece of the code: def azan(message): timed1 = ('17:52') timed2 = ('22:09') #print(timed2) #for testing bot.send_message(message.chat.id,"test…
1
vote
0 answers

How to get user id from a replyed message? (telebot)

I want a create a bot that add or leave "points". For do this i use for every user a single txt file nominated with they id. For add points i wanna do a replyed message with /addkarma (number of points) and i want add karma (the points) at the user…
1
vote
0 answers

How to handle an exception in telebot itself

I want to clarify, this is an asynchronous version of telebot. I tried various ways to catch the errors that occur. I specified the wrong token and launched the bot, but how can I handle this error, and instead of the standard message (which will be…
1
vote
1 answer

How to do function only on friday and only one time in aiogram?

Here I have a code, it works. But I want it to work only only one time on friday: import logging from aiogram import Bot, Dispatcher, executor, types from aiogram.types.message import ContentType from aiogram.types import ReplyKeyboardRemove, \ …
1
vote
1 answer

How to make text, that is in variable, bold using pytelegrambotapi

I basically have a variable that contains the string. This is not a fixed string and is being changed by the user, so every time user uses the bot - string changes. My question is how to send a message from the bot to the user making text in…
user14023416
1
vote
0 answers

telegram python - automation connect and send a message

trying to explore telegram python and create an automation that can send data, but for now I'am trying to connect my server with centOS to telegram during my testing I received an error when I run the python script, is there someone know what I need…
rodskies
  • 119
  • 1
  • 11
1
vote
1 answer

How to get message updates from the user after the bot message telegram bot

So I'm new at making a telegram bot, I want to have like the botfather: user: create bot bot: provide name for your bot user: foo bot then the user text is used in the future. I have a simple sample bot which defines a word that the user…
ciumai
  • 21
  • 1
  • 6
1
vote
1 answer

Pythonanywhere Telegram bot POST function not working

Hi im brand new on Pythonanywhere and i have choosen it to migrate a bot im deploying with Apps Script, after reading many old tutorials from 2018 this is the piece of code that i came up with: from flask import Flask, request import telepot import…
1
vote
1 answer

Missing 1 required positional argument [Telebot]

Good day! I'm new to python, I'm currently learning about passing arguments. And then there was an error. Here is part of the code def gosto(imia): @bot.message_handler(content_types=['document']) def primer(message): loop2 =…
vicsdocs
  • 13
  • 3
1
vote
1 answer

How to hide the reply keyboard after click on button in Telegram Bot using telebot?

There are code where I create a ReplyKeyboardMarkup and wanna hide id after click on button "Chat". How to do this? Without sending new message and delete her like: bot.send_message(mes.chat.id, "working",…
1
vote
1 answer

Eval Exec on Async Telebot

https://user-images.githubusercontent.com/20538090/160258926-405804cc-dad7-42ce-8dc1-e92bba7acb1e.png Before switching to async telebot, I wrote eval and exec commands, so I could manage the bot from telegram, but I can't use it after doing async,…
1
vote
2 answers

Remove Spinner on Inline Keyboard

How can I get rid of the spinner in Telegram bot inline button? I'm using the pyTelegramBotApi (Telebot) library. Remove spinner :
Hidrometer
  • 13
  • 2
1
2
3
14 15