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

InlineKeyboardButton with callback_data doesn't work. When I click on it, nothing happens. Here is how I create the button: from django.apps import apps from asgiref.sync import sync_to_async from ...
g_0008's user avatar
  • 11
2 votes
1 answer
152 views

I want to get some previoius messages from chat with Python telegram bot's library. Here is my bot's handler: class BotController: def __init__(self) -> None: self.token = os.getenv(&...
Konstantinos's user avatar
0 votes
0 answers
580 views

[Description: Hello, Stack Overflow community! I am developing a Telegram bot using Python with the python-telegram-bot librarythat interacts with a business account to send gifts to users. The ...
user31047982's user avatar
1 vote
1 answer
63 views

I am using the python-telegram-bot package to develop a Telegram bot. I was wondering if it's possible to access the details of a message that has been replied to from another chat? Broader ...
Obidjon Raimov's user avatar
1 vote
1 answer
202 views

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
0 votes
0 answers
89 views

I'm trying to track new users joining a Telegram channel (not a group) using the python-telegram-bot library (v20.x). My bot is an admin in the channel, but it doesn't detect new_chat_members events. ...
AslanPAPA's user avatar
  • 153
0 votes
0 answers
61 views

I'm developing a Telegram bot, and I want to generate clickable user mentions in admin reports. These mentions should: Link to the user's profile Work on all platforms Handle any kind of Telegram ...
Abdurahim Joramurodov's user avatar
1 vote
0 answers
377 views

There was a problem, I am making a business bot on aiogram, but I can not understand how to implement a connection check, I saw the following system in one bot, the bot asks to add itself as a chat ...
SenArio's user avatar
  • 29
-5 votes
1 answer
98 views

I am working on a bot that echoes the latest YT video title of a specific Youtube Channel to its users. However, it will only echo the video title only if it contains at least one of the user's ...
UnstoppableWil's user avatar
0 votes
0 answers
68 views

With python-telegram-bot v0.22 some things have been changed and I can't get the code to work. I've tried a a lot of things but keep running into a problem. Here is my simplified code. I want to write ...
Crankle's user avatar
0 votes
0 answers
76 views

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
1 answer
157 views

I have multiple bots that utilize Python Telegram Bot module. Each bot has code like: from telegram.ext import Updater, CommandHandler def start(update, context): update.message.reply_text("...
Bijan's user avatar
  • 8,816
0 votes
1 answer
271 views

I'm using Telethon to send files on Telegram, but I've run into a problem with the 2GB file size limit. Telethon only allows sending files up to 2GB, while Telegram itself supports sending files up to ...
Harshit Kamboj's user avatar
0 votes
1 answer
191 views

I made a Telegram bot with python-telegram-bot library, and I want to test it in a group where it has to interact with many users at the same time. Because I cannot test it only by myself (I have only ...
Satoshi's user avatar
  • 23
0 votes
0 answers
124 views

Is it possible to add personal public channel in Telegram profile bio using Telethon? If it is, then how I can do it? It can be done manually on the device (phone or desktop) but my goal is to ...
4hdrey's user avatar
  • 21
0 votes
0 answers
86 views

The main task during development is a technical support bot. The user writes a problem to the telegram bot, which forwards it to a supergroup topic. Inside the topic, support discusses the problem and ...
StarsPrais Olo's user avatar
1 vote
0 answers
69 views

This aiogram bot I made runs perfectly on my PC, but when I went to run it on their server, it gives me this error aiogram.exceptions.TelegramNetworkError: HTTP Client says - ClientConnectorDNSError: ...
Red Yonathan's user avatar
1 vote
0 answers
89 views

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
0 votes
0 answers
33 views

Not being able to call /order twice. I call /order, without doing anything, i call /order again. It's not calling the async def order. It should work without allow_reentry=True. WHY? ORDER_CATEGORY, ...
Champo Rambo's user avatar
0 votes
1 answer
110 views

This is the error I get every time I try to start the bot. (venv) C:\Users\Due Bighelloni\Desktop\bingo bot>python versolarmoniabingobot.py Traceback (most recent call last): File "C:\Users\...
Daniel's user avatar
  • 1
0 votes
1 answer
954 views

I am writing a bot for Telegram using the python-telegram-bot library. I am connecting mini app to it. The application starts and can even receive data from the bot, but for some reason the data does ...
Andrey Epifantsev's user avatar
1 vote
1 answer
163 views

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
0 votes
0 answers
49 views

I'm struggling with running python-telegram-bot-21.10 as a coroutine to a PyQt5 application using Python-3.12.7 (intended to run on a Raspberry Pi). I had this setting operating for some years now ...
blue14's user avatar
  • 56
1 vote
2 answers
2k views

I got the error TypeError: Only timezones from the pytz library are supported even after not using it with python-telegram-bot File "/home/shubham4538/mysite/index.py", line 38, in main ...
Shubham Singhvi's user avatar
1 vote
1 answer
247 views

I have a bot that needs to warn and ban users in a group. But I cannot ban them if someone writes as a channel. I want to ban the channel, not the owner message.from_user returns a fallback value, ...
Азиз Хакбердиев's user avatar
1 vote
1 answer
138 views

General Information: I am using Python 3.11.0 and python-telegram-bot==21.5. I am having some issues with my Telegram bot. The general idea of the bot is to keep track of a timer that is set for each ...
Leah's user avatar
  • 67
0 votes
1 answer
97 views

I am using async version of python-telegram-bot lib 20+ persistence = PicklePersistence(filepath="pickle_persistence") application = Application.builder().token(token).persistence(...
A B's user avatar
  • 63
0 votes
0 answers
252 views

I’m building a Telegram bot using python-telegram-bot, and I’m using a ConversationHandler to manage conversations. Here's my handler setup: python conv_handler = ConversationHandler( entry_points=[...
amirhosein_roodgar roodgar's user avatar
0 votes
0 answers
68 views

from pyrogram.raw.functions.messages import Report from pyrogram.raw.functions.channels import GetChannels from pyrogram.raw.types import InputPeerChannel, InputReportReasonSpam from pyrogram.raw ...
daryoush's user avatar
0 votes
1 answer
574 views

I am trying to run a Telegram bot using the python-telegram-bot library (version >= 20) in asynchronous mode. The problem is that when I start the polling, the whole application blocks. I have ...
Uccio Maselli's user avatar
0 votes
0 answers
20 views

I am trying this for now, using python-telegram-bot==20.6: async def callback(update: Update, context: ContextTypes.DEFAULT_TYPE): buttons = [ [InlineKeyboardButton(text="CONFIG",...
alain's user avatar
  • 175
0 votes
1 answer
35 views

I'm trying to setup a server in python anywhere but I'm facing module import errors File "/home/Adejuwonlo/Twitter_Automation/./services/telegram_service.py", line 2, in <module > ...
ADJAY's user avatar
  • 1
0 votes
2 answers
370 views

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
0 answers
24 views

I am using python-telegram-bot module to create a InlineKeyboardButton called invite. I would like the user to click the invite button then a share_to window with checkbox showing up like this . But ...
Youshikyou's user avatar
0 votes
1 answer
178 views

Well, so basically what I am trying to do is capture and store the messages posted on a SPECIFIC Telegram Group/Channel, live, in real-time. I have gone through the documentations, tried writing the ...
himel21's user avatar
0 votes
0 answers
94 views

I tried to make a bot that downloads files from Telegram channel, but except of good code I don't get files that may be downloaded in my directory. I tried this code: @bot.message_handler(...
kitty12121212's user avatar
0 votes
1 answer
94 views

I wrote this function to download big files from Telegram using aiogram bot. I call the function with message handler with filter: application.add_handler(MessageHandler(filters.VIDEO, ...
user3130061's user avatar
0 votes
1 answer
294 views

I want to create a bot that kicks users from group based on certain condition (doesn't matter). My problem is - I found function that kicks users ( Bot.ban_chat_member() from python-telegram-bot ), ...
mlody jano's user avatar
0 votes
2 answers
267 views

how to find users who forwarded messages to a group using aiogram 3. that is, if someone forwards messages in the group, the bot should alert the admin. is it possible to do so? I can't identify the ...
Murodjon Isroilov's user avatar
0 votes
1 answer
138 views

In a .py module I created this function from utils.telegram_utils import telegram_message ... counter = count(1) def open_websites_with_progress(url): risultato = ...
Gabriele's user avatar
0 votes
0 answers
115 views

I'm developing a Telegram bot that allows users to send PDF files. The bot should extract text from the PDFs using pdfminer and respond to user queries. However, I'm facing dependency issues, ...
Jeeva's user avatar
  • 9
0 votes
1 answer
150 views

I'm working on a Telegram bot and I want to make certain parts of the text bold in the response when providing the profile context of a site. Here’s a snippet of my code that retrieves and formats the ...
zulfa novita's user avatar
0 votes
1 answer
173 views

I have a telegram bot written with python telegram bot package with the latest release and i have a problem, the bot runs fine everything works but when i try to run it in 2** different groups** at ...
Hirbod Aflaki's user avatar
0 votes
1 answer
1k views

I'm developing a Telegram bot that suggests movies using the python-telegram-bot library and IMDbPY. I switched from synchronous to asynchronous code using asyncio to handle waiting times more ...
Saud Binnouh's user avatar
0 votes
2 answers
8k views

It's known knowledge that telegram mini apps are just simple sites being accessed via bots. So my question is, how do i get the actual url to the site displayed when a mini app is opened? The answer ...
Knight's user avatar
  • 11
0 votes
1 answer
296 views

I'm building a Telegram bot that interacts with users to edit and upload videos using the python-telegram-bot library. The bot retrieves videos from Reddit, edits them using moviepy, and then asks the ...
Nicolas Hoechli's user avatar
0 votes
1 answer
84 views

I pulled this code from a github repo https://github.com/Sqble/Telegram-To-Discord-Bot-Fixed/blob/master/forwardgram.py and am running into a couple errors on the loop. from telethon import ...
zzBMRzz's user avatar
  • 33
3 votes
1 answer
145 views

This question is a follow up from this question asked earlier here I need help in trying to modify this code section which I am currently using to download just 1 image. async def handle_s_command(...
Slartibartfast's user avatar
0 votes
1 answer
41 views

I'm trying to implement a telegram bot with the following flow: User A sends a request to Bot by command Bot saves the request to database, replies A that Bot has received the request and the request ...
Margaret Nguyen's user avatar
0 votes
0 answers
107 views

I wrote the telegram bot code. When running the main file, it throws an error: from aiogram import Bot, Dispatcher ModuleNotFoundError: No module named 'aiogram' I use VS Code, installed aiogram and ...
KALEBALKA's user avatar

1
2 3 4 5
32