5,082 questions
1
vote
1
answer
68
views
Telegram Mini App (WebView) loads forever on Android
I have a Telegram Mini App built with NextJS where I serve it on Railway with Cloudflare as proxy. I created a custom domain and registered the CNAME to Cloudflare and everything works fine on IOS, ...
-4
votes
0
answers
43
views
Bot API on telegram [closed]
I've built a bot and and linked it to my telegram, it's fully functional the only problem is I can't access it on different devices as it shuts out the other devices and only focuses on the last ...
-4
votes
0
answers
35
views
Error when deploying a Telegram bot to the server in Laravel 7
My Laravel 7 project is running on the server. I added a Telegram bot to it using Laravel itself. But when I upload it to the server, it shows an error. I zipped the 'irazasyed' folder inside the ...
1
vote
1
answer
58
views
Why does my Telegram bot repeat the same response after clicking an inline button (callback_query) when using a Google Apps Script webhook
I’ve built a Telegram bot hosted on Google Apps Script, using a webhook to handle updates.
When I click on an inline button, the bot sends the correct reply, but it keeps repeating the same response ...
0
votes
1
answer
74
views
Aiogram Bad Request: can't parse inline keyboard button: Text buttons are unallowed in the inline keyboard
i have an Aiogram project and get errors in log file. The error log doesn't provide information about where exactly in the project this happened, only information about where in the package it ...
0
votes
0
answers
72
views
Telegram Bot sendDocument fails with Amazon S3 URL
I am using PHP with Guzzle to send a document via Telegram Bot API using sendDocument.
The file is hosted on Amazon S3 with a URL like:
https://telegramfile.xxx.amazonaws.com/file/preview/chat/...
4
votes
1
answer
172
views
Python Telegram Chatbot Issue
I have a telegram bot (@TEVOProjAttBot) I created to upload event attendances on Google sheet. However, the commands "/start", "/help", "/add" doesn't work as it should, ...
0
votes
1
answer
69
views
Media files are not being sent in Pyrogram
Here's my code. When I run it, it only displays "Sending" and that's it. I don't understand what the problem is.The id passed to the function and the path to the photo have been changed for ...
2
votes
1
answer
70
views
Pyrogram bot doesn't send downloaded media
I have a set of functions written in Pyrogram that make up a user bot that copies media messages from one Telegram channel to another. The problem is that it doesn't copy the media messages in the ...
3
votes
2
answers
919
views
Telegram bot api getUpdates or SendMessage doesn't work on browser
I created a Telegram bot using the Botfather and got token for that bot.
Visiting the following url in browser worked fine to send message on Telegram.
https://api.telegram.org/bot<123:Token>/...
0
votes
0
answers
144
views
Initializing Mini Apps in C# WASM app with Avalonia.Browser
In Telegram docs, https://core.telegram.org/bots/webapps#initializing-mini-apps,
To connect your Mini App to the Telegram client, place the script telegram-web-app.js in the <head> tag before ...
1
vote
1
answer
127
views
InlineKeyboardButton with callback_data doesn't work
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 ...
0
votes
0
answers
80
views
Usage of method onUpdateReceived from org.telegram.telegrambots.bots.TelegramWebhookBot
Can anyone explain what is BotApiMethod<?> onWebhookUpdateReceived(Update update) method used for?
I am developing a telegram webhook bot in java spring boot and i have been using @...
0
votes
0
answers
728
views
BrowserType.launch: Executable doesn't exist — how to fix?
I’m building a Python Telegram bot (using paid version of Chat GPT), deployed as a background service on Render. The bot runs every 5 minutes and performs:
Symbol screening via Bybit API (aiohttp)
...
0
votes
2
answers
161
views
Is there a way to get the topic(thread) ID from a Message object in Telethon?
I am trying to get all messages from a supergroup in Telegram with every message's sender name and topic name in a text file using telethon, but I can't find how to get the topic ID from a Message ...
0
votes
0
answers
603
views
How to Retrieve the Telegram Store Gift Catalog via Bot API for a Business Account?
[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 ...
1
vote
1
answer
65
views
Is accessing details of message replied from another chat possible
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 ...
0
votes
0
answers
140
views
Telegram Mini App opens in full screen instead of compact drawer view (WebView height issue)
I am building a Telegram Mini App. I want it to open in a half-screen drawer (compact mode), not in full screen.
Here’s what I’ve done:
Set the Mini App mode to compact using BotFather: BotFather → ...
1
vote
1
answer
210
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 ...
0
votes
1
answer
130
views
Telegram login payload hash verification in Java
I am new to using Telegram and I'm trying to validate the hash provided by Telegram's initData for a webapp mini app (not the login widget) in Java, using the steps from the official Telegram ...
0
votes
0
answers
39
views
Web app with app router: how to make telegram fullscreen on a phone?
On my bot side, I am sending an InlineKeyboardButton with an app router link with couple of parameters
webapp_url = f'{base_url}/?param1={rid}¶ma2={uid}'
I want to be able to open it full ...
0
votes
0
answers
64
views
How to create a Telegram user mention link that works across all devices and profile types in a bot message?
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 ...
0
votes
1
answer
394
views
Bad Request: chat not found, error_code:400, i am have issue while sending message on telegram
I am working on a project where I want to send all the reminders due in 3 days from now, but I am facing a problem. I have an error code 400 while sending the message on Telegram (for which I am using ...
0
votes
0
answers
70
views
How do Telegram bots see messages from other bots?
According to the FAQ: Bots talking to each other could potentially get stuck in unwelcome loops. To avoid this, we decided that bots will not be able to see messages from other bots regardless of mode....
1
vote
0
answers
388
views
Problem with receiving business connection id in aiogram bot
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 ...
-1
votes
1
answer
102
views
How to prevent Telegram accounts (e.g. from Myanmar) from being deleted immediately when logging in via Telethon
I'm using Telethon to log into Telegram accounts and save their sessions. However, when I try to log in with accounts from Myanmar or other sensitive countries, the accounts get instantly deleted ...
0
votes
0
answers
73
views
How to detect when I react to a message using Telethon?
I'm trying to detect when I react to a message using Telethon.
I tried using UpdateMessageReactions inside events.Raw, but it only triggers when someone else reacts to my messages — and only if I've ...
1
vote
1
answer
57
views
dptree::filter_async problem with move semantic
I'm writing a bot on Rust via teloxide + tokio. I have this run method (called from main)
pub async fn run() {
dotenv::dotenv().ok();
pretty_env_logger::init();
log::info!("Starting ...
0
votes
0
answers
49
views
How can I get user's message and put it into a variable in bot Telethon?
I'm making telegram bot using Telethon and I want bot to request users's name (not username or first_name; it's like nickname which user can make by himself). And then bot whill use this name.
For ...
0
votes
0
answers
46
views
Selenium + ChromeDriver crash when scraping Google Maps entries with Selenium on MacOS
I’m building a Telegram bot in Python that scrapes points of interest (POIs) from Google Maps using Selenium. The overall flow works, but as soon as I try to scroll through and click on the .hfpxzc ...
0
votes
0
answers
223
views
pyrogram message.message_thread_id is not working
I have been trying to fetch the thread id from telegram using pyrogram so far I have been successful with fetching the chat ID itself but there are errors when i try to fetch the thread id (I am using ...
0
votes
0
answers
51
views
Connection to database in SQLAlchemyJobStore
I am developing a highly loaded TG-bot. One of the functions is a scheduler with sending a message at a specified time. At the moment I have the following problem: I want to make it so that tasks have ...
0
votes
2
answers
394
views
How to Make Telegram Bot CA Text Tappable to Copy to Clipboard with Notification Using node-telegram-bot-api?
I’m building a Telegram bot using node-telegram-bot-api in Node.js to send transaction notifications on the Solana blockchain. Each transaction message includes a Contract Address (CA), and I want the ...
-5
votes
1
answer
103
views
What Danger am I Inviting if I Store Telegram User IDs Unhashed/Unencrypted in a Database? [closed]
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 ...
-1
votes
1
answer
115
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 ...
1
vote
1
answer
278
views
python-telegram-bot Inline Buttons Unresponsive After Long (~5+ hours) Delay
I'm developing a Python application (using PySide6 for the GUI) that interacts with users via Telegram using python-telegram-bot version 13.7. The application runs automated workflows that can take ...
0
votes
0
answers
76
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 ...
0
votes
0
answers
131
views
Telegram API: Create private chat
There is a task to create a bot for anonymous communication (you can't go to the profile of a chat participant).
I studied the materials, from them it follows that opening a chat of participants is ...
0
votes
0
answers
65
views
Creating a Forum Topic In Telegram Super Group isn’t working
I try to create a Forum Topic in a Telegram Super Group using the Telegram API. To do this, I'm using Make as my integration platform. However, I keep getting the same error:
[400] Bad Request: title ...
0
votes
1
answer
44
views
Function after decoration changes its result ('return' value)
So here's the decorator and the function I use:
#telebot module imported, and another function gets users input and calls the check function with:
my_bot.register_next_step_handler(message, check)#...
0
votes
1
answer
516
views
Aiogram message formatting
I'm developing a telegram bot on aiogram and faced a problem. I need to highlight the text bold italicized in the MD V1. How do I do it? I tried different formats: triple underline, triple asterisks, ...
0
votes
0
answers
72
views
Telegram bot have freeze when sending picture to chat users, but not always. TelegramNetworkError: HTTP Client says - Request timeout error
Please help me with my problem. I have telegram bot on aiorgma 3.0 (python). It send message as business reports (text and table or chart photo) to chat users by apscheduler cron. Everyday on fix time ...
0
votes
0
answers
140
views
Issue with Telegram Post Widget in Telegram Mini App on iOS
I'm using a TelegramPost component to embed Telegram posts inside a Telegram Mini App. Here’s the code:
const TelegramPost = ({ link }: { link: string }) => {
const path = link.replace("...
0
votes
0
answers
51
views
Testing telegram login widget localy on React
I am developing a React TypeScript app that must implement authorization and authentication through Telegram. I wrote some code, to implement logic for it, but then, I realized that I needed to have a ...
1
vote
0
answers
51
views
Issue with Telegram Bot Loop Running Indefinitely
I'm developing a Telegram bot using core PHP, and I'm encountering an issue where the bot's /kill command runs indefinitely due to slow responses from an external API.Its take 25sec for two times loop....
1
vote
1
answer
164
views
Pyhon Telegram Bot Multiple Bots
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("...
0
votes
0
answers
105
views
Retrieving telegram poll results when the poll is closed
I'm currently using grammY to create a telegram bot.
I'm able to create a poll using the below code. The poll closes when at pollCloseDate.
I want to send a message when the poll closes. The message ...
0
votes
0
answers
35
views
Why does the message not have the properties it should have? Aiogram
@dp.message(WriteAppeal.message)
async def wrote(message: Message, state: FSMContext):
await bot.forward_message(chat_id=CHANNEL_ID, from_chat_id=message.chat.id, message_id=message.message_id)
...
0
votes
0
answers
84
views
Telegram bot doesn't trigger the webhook
I’ve already set up my Telegram bot webhook in a WordPress site. When I check it using getWebhookInfo, I get this response:
{"ok":true,"result":{"url":"https://...
0
votes
2
answers
153
views
Issue with IAP (Telegram Stars) on Android
I have a game in development for Telegram, using Unity3D, and I want to integrate IAP (Telegram Stars) into the game,
The flow is as following:
user click on in-game item
the game call Telegram API ...