Skip to main content
Filter by
Sorted by
Tagged with
3 votes
1 answer
113 views

I am using WTelegramClient in a C# / .NET 9 environment to manage multiple user sessions (userbots). I am encountering a strange, intermittent issue with the login flow that I can't pin down. The ...
iceblink's user avatar
-2 votes
2 answers
191 views

I'm using GramJS (telegram npm package) to listen for new messages in Telegram groups. The NewMessage event handler works perfectly for: Direct messages (DMs),Small groups (< 1000 members),Medium ...
user3374544's user avatar
Best practices
0 votes
0 replies
96 views

According to the official Telegram Bot API docs, media captions are limited to 0–1024 characters after entities parsing. However, I recently saw a forwarded bot message that looks like a single media ...
Slow Storm's user avatar
-1 votes
1 answer
117 views

I've got a function to download an image from telegram message, it accepts message.media.photo: const downloadPhoto = async (photo, client, name) => { await client.connect(); const file = new ...
k102's user avatar
  • 8,119
0 votes
0 answers
96 views

I’m testing a simple Pyrogram client and noticed something strange when the session appears in Telegram’s Active Sessions list. Here is my test code: from pyrogram import Client app = Client( &...
Abdurahmon Jome's user avatar
3 votes
2 answers
1k views

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>/...
toygr's user avatar
  • 159
0 votes
0 answers
177 views

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 ...
Dmitriy's user avatar
0 votes
1 answer
162 views

I would like to customize the main menu texts based on the customer language preference, but I have not seen any document about how to create / update the main menu using java. I can create Inline-...
zappee's user avatar
  • 23.3k
0 votes
0 answers
748 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
73 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
667 views

I'm writing a function that takes as input the tg session (client), to_user (InputPeer) and gift (the gift we are sending) and sends the corresponding gift to the user to_user from the client account ...
morz1k3's user avatar
  • 13
0 votes
1 answer
169 views

I currently have a service in docker, the purpose of which is to retrieve the data I have in a private group I have (forum), where I store all my personal data, and then save them on my local server. ...
skjolberg's user avatar
1 vote
1 answer
303 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
111 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
  • 151
0 votes
0 answers
87 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
0 votes
0 answers
100 views

I'm trying to use the SendMultiMediaRequest function from the Telethon library to send a Telegram message that includes several images and some text. However, the request doesn't work as expected — no ...
Vadim Kovach's user avatar
0 votes
1 answer
181 views

relayer.py async def send_gift(username, gift_id=config.teddy_id): client = TelegramClient(session_name, api_id, api_hash) client.start(phone=config.phone, password=config.two_factor) ...
Артем Куулар's user avatar
0 votes
0 answers
72 views

I'm using the Telethon library to interact with Telegram's API. Initially, after calling await tel_channel_access(), the client is successfully connected to the server. However, just before running ...
Quokka's user avatar
  • 1
0 votes
2 answers
162 views

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 ...
Tom Kazansky's user avatar
-1 votes
2 answers
846 views

I am building a Kotlin telegram bot using the latest version of this Java SDK. I am trying to send an invoice using Telegram internal currency stars Their official docs say that in order to do this ...
Arthur Klezovich's user avatar
0 votes
1 answer
254 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
  • 43
0 votes
1 answer
124 views

I need to send premium reactions to messages, but send_reaction() only accepts emojis as a string, how can I specify a premium reaction in send_reaction()?
SvyatWay's user avatar
0 votes
1 answer
77 views

I am developing a Telegram bot using the Telegram Bot API. The bot is an admin in my Telegram group. I need the members to access messages, interact with the group, and read messages only from one ...
Muluken M's user avatar
0 votes
1 answer
99 views

I want to understand how Pyrogram works. So I tried to get a phone number from the group for educational purposes, similar to what I successfully did with an url. def main(): with app: ...
Vladimir's user avatar
1 vote
0 answers
105 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
2 answers
3k views

I am making a mini app game for Telegram. It runs in full-screen mode using recently announced new API functions. The game interface is originally designed for landscape screen mode. Accordingly, if ...
Egor Vostriakov's user avatar
0 votes
1 answer
131 views

I use the telethon library to send media files. Videos and images work fine through async def send_media(self, chat_id: int): async with self._get_client() as client: chat = await client....
Антон Миндлин's user avatar
0 votes
1 answer
1k 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
2 votes
0 answers
133 views

I am using Nginx as a reverse proxy to forward requests to Telegram Bot API in order to reduce rate-limiting on my server. My Nginx configuration works fine when I only proxy to my local Bot API ...
javad moones's user avatar
-1 votes
1 answer
97 views

i want to listen updates from telegram and send the msg to a group on fulfilled conditions simultaneously but i am not able to do both together i am facing issue with client connection I am using this ...
Hrozone's user avatar
3 votes
1 answer
510 views

I'm working on a telegram chatbot that accepts applications, and the application is sent as a chat message to a potential performer. After that, at some point in time, the manager appoints an ...
aiswe's user avatar
  • 55
0 votes
1 answer
993 views

I have an error that I stumble upon. I can't figure out if there's something wrong with my code, or if this error occurs because I've tried to make an incorrect request from this account many times ...
Alina's user avatar
  • 1
0 votes
1 answer
211 views

I don't understand why it's not possible to retrieve more than 200 members from a Telegram group. The only thing that seems to work is iterating through a filter, but it doesn't return deleted ...
Artem's user avatar
  • 1
0 votes
1 answer
335 views

I'm trying to use Telegram Login Widget on Native App made with Ionic. I'm using a InAppBrowser to open the auth page, after the Telegram Verification completes, I get redirected to my redirectUrl ...
dorant dushi's user avatar
0 votes
1 answer
225 views

When using Telegram bot API the text in Hebrew should be aligned RTL. Instead it is aligned incorrectly in LTR. Request: POST /botXXXXXXXXXXX:XXXXXXXXXXXXXXXXXXXXX/sendPhoto HTTP/1.1 Host: api....
Barak's user avatar
  • 59
0 votes
1 answer
2k views

Telegram MiniAPP shareMessage I see that telegram has added shareMessage and I tried using this method to send a message with an image that I wanted to provide. But I cannot find any examples and I ...
hzzhyj's user avatar
  • 3
0 votes
0 answers
351 views

First post here, not sure how to format my question, but I am trying to make a Telegram Bot, which takes information from messages posted in my Telegram channel, and then puts them into my Google ...
Governor Bets's user avatar
0 votes
1 answer
101 views

im trying to write simple bot on C# .net8-0 and im need to press some inline buttons in messages, but im always see error BOT_RESPONSE_TIMEOUT, here is my code bool result = false; if (GetInputPeer(...
Member-28661788's user avatar
0 votes
3 answers
438 views

I have problem with this method in my telegram mini app: https://core.telegram.org/bots/webapps#validating-data-received-via-the-mini-app When client trying to log in into my mini app frontend sends ...
Python Coder's user avatar
1 vote
0 answers
82 views

I wrote this message edit event handler for printing the content of edited message (from public tg channel) right to my console and then putting it in chatgpt prompt through g4f library for getting an ...
werq2w3fqwfwassgqwfg's user avatar
0 votes
1 answer
391 views

I'm trying to build an automated bot using WTelegramClient that forwards messages from one Telegram group to another. The process works fine for existing accounts, but I encounter a problem when ...
Pubg Id's user avatar
1 vote
0 answers
242 views

I am writing a simple Telegram message handler using the Telethon library I'v already used the code below to forward to the specified topic await client( ForwardMessagesRequest( from_peer=...
Trdthg's user avatar
  • 11
-2 votes
1 answer
278 views

Example of my code: import json from telegram import Bot, Update, LabeledPrice from telegram.ext import ContextTypes PAYMENT_SYSTEM_TOKEN = '000000000000000' INVOICE_PAYLOAD = 'Payload-Testing' ...
Serge-M's user avatar
  • 29
0 votes
0 answers
1k views

I'm trying to join a lot of telegram groups on one account. I've made a script in python that uses telethon to do the job but it fails miserably and gets rate limited extremely fast. Ignore the "...
JokerLow's user avatar
0 votes
1 answer
1k views

I want to transfer session from telegram desktop or mobile in folder tdata to telegram session of WTelegramClient how can i do this. Thanks I tried to find a way to use opentele to move the tdata ...
TuanNV's user avatar
  • 29
0 votes
1 answer
289 views

In a traditional Web application, the backend service should never trust the payload sent from the user frontend. Though the frontend pages use carefully designed UI to force users to send data in a ...
Yan's user avatar
  • 492
3 votes
1 answer
154 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
2 votes
1 answer
781 views

I have this code file_name = f'photo_{update.message.message_id}_{photo.file_unique_id}.jpg' full_download_url = f"https://api.telegram.org/file/bot{BOT_TOKEN}/{download_url}" logger.info(f'...
Slartibartfast's user avatar
0 votes
1 answer
97 views

I have a problem with my code where the command is not triggerred properly. Here's my code. function handleInitialCommands(receivedTextMessage, chatId, messageId) { if (receivedTextMessage....
23March's user avatar
0 votes
1 answer
746 views

how to show popup message box in telegram, use telebot python library like below picture: enter image description here Or give me a keyword related to this message box so that I can search about it ...
Alex's user avatar
  • 3

1
2 3 4 5
7