Skip to main content
Filter by
Sorted by
Tagged with
1 vote
1 answer
126 views

Userbot Telegram API

I am creating a userbot. I can't figure out how to implement it: when I am offline from Telegram (I exit the app), it automatically changes the name in one way and when I am online in another. I can't ...
Emiliano Ps5's user avatar
-1 votes
1 answer
85 views

How to make Telebot respond "I don't understand" when user sends unknown text? [duplicate]

I’m making a Telegram bot using Python and the telebot (pyTelegramBotAPI) library. I created a basic telegram bot for practice, and I want bot to say β€œSorry, I don’t understand” when a user sends a ...
Π’Π•ΠšΠ’Π‘'s user avatar
0 votes
0 answers
65 views

Problem in deploying telegram bot in Render. There is no error but the bot does not respond to /latestjobs

import os from flask import Flask from threading import Thread from telegram import Update from telegram.ext import ( ApplicationBuilder, CommandHandler, ContextTypes, ) import ...
MD OmΓ‘r's user avatar
1 vote
0 answers
74 views

How to suppress "Traceback" when it loses connection with Telegram bot

I'm developing and building a Python script for Telegram bot. I was adding the following codes in a script to report any error via output from Linux terminal: logging.basicConfig( format='%(...
luisito_36's user avatar
1 vote
1 answer
142 views

Is there a method to accept pending requests for membership in a channel or group?

For Python telegram bot is there a method to accept pending requests for membership in a channel or group? def get_pending_requests(update: Update, context: CallbackContext): try: ...
poria bagheri's user avatar
2 votes
1 answer
148 views

How to prevent Python Telebot from duplicating messages?

I've got a problem with Python Telebot, here is my code: import telebot token = 'token' bot = telebot.TeleBot(token) @bot.message_handler(func=lambda message: True) def start(message): bot....
ALex's user avatar
  • 23
0 votes
0 answers
35 views

Python Telegram bot freezes when run by Airflow

I'm trying to execute a Python Telegram Bot through an Airflow DAG. The DAG works and execute the bot, but it don't do any response to the commands. When I execute the file manually it do the ...
Heli's user avatar
  • 1
0 votes
0 answers
20 views

Why doesn't seem to be able to send an audio file with FRONT_COVER on the Pytelegrambotapi

In general the problem is that the audio file is sent to a file without a picture. I first thought that the problem is that the picture is installed on the wrong version of id3, and tried four methods ...
exorik's user avatar
  • 1
0 votes
2 answers
297 views

how to count the number of reactions of a post in a channel. pyTelegramBotAPI?

I'm trying to create a chatbot that will read the number of reactions and send them to me. In the pyTelegramBotAPI documentation, I found the message_reaction_count_handler and ...
LeonardiK's user avatar
0 votes
1 answer
75 views

[PyTelegramBotAPI]Error Sending Media Group with Video and Thumbnail: BufferedReader is Not JSON Serializable

I'm encountering an issue using PyTelegramBotApi that's driving me crazy. I want to send a media group message from my bot to a channel. The media group contains a single video with a custom thumbnail....
Kemical's user avatar
2 votes
1 answer
60 views

Telebot. @bot.callback_query_handler isn't working

Can somebody tell me what am I doing wrong? The bot sends me an inline keyboard, but after clicking the button, I do not receive any callbacks (even the logger doesn't send anything). Also, if I pass ...
AndyFlight's user avatar
0 votes
0 answers
110 views

problem of not having all YouTube video qualities in the yt-dlp list

so basically i'm trying to build telegram bot using telebot (pyTelegramBotAPI) library and yt-dlp so that the user can download the video he wants with the quality he wants. also because yt-dlp shows ...
Blackthor's user avatar
0 votes
0 answers
648 views

Telegram stars payment invalid

I made a telegram bot integrated with mongodb to handle payments through getting telegram stars from users, but I get the error telebot.apihelper.ApiTelegramException: A request to the Telegram API ...
yo ndk tau's user avatar
0 votes
1 answer
31 views

Python peewee ORM Error: 'no such table: Tasks'

I'm struggling with peewee in python. My configuration for project is Python + pyTelegramBotAPI + Sqlite3 + peewee. My telegram bot is the task manager (learning project). Here's my code for getting ...
user26482297's user avatar
0 votes
1 answer
88 views

how to let userBot and my bot work together?

I'm trying to build telegram bot which forwards msgs from a specific channel to the bot using userBot and then the bot should react automatically to the forwarded msg @client.on(events.NewMessage(...
ANDROID_IOS_BIGGENER's user avatar

15 30 50 per page
1
2 3 4 5
…
26