329 questions
0
votes
1
answer
26
views
Telegram nodeje api: getting 400 CONNECTION_NOT_INITED error
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 ...
3
votes
2
answers
856
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
1
answer
142
views
create/update main menu based on user's preferred language
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-...
0
votes
0
answers
569
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
422
views
Eror Sending Telegram Gift: RPCError 400: PAYMENT_REQUIRED (caused by TransferStarGiftRequest)
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
...
1
vote
1
answer
191
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
0
answers
58
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
133
views
Callable Telethon function
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)
...
0
votes
0
answers
52
views
Why does the Telegram client connection drop unexpectedly during execution in Telethon?
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 ...
0
votes
0
answers
109
views
Telethon check number
I need to receive information about a large number of Telegram numbers, and more specifically: is the number blocked in Telegram or not, is the mail linked. Ideally, I need to track numbers that are ...
0
votes
0
answers
76
views
GramJS Api.messages.Report() return 400 OPTION_INVALID
I have a method reportMessage:
async reportMessage(channelId: string, messageId: number, reason: ReportReason, comment?: string) {
let reasonApi: Api.TypeReportReason;
switch (reason) {
...
0
votes
1
answer
186
views
How to solo-test a telegram bot within a group as multiple users
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 ...
0
votes
1
answer
61
views
Limiting Telegram Group Access to a Single Device with Bot API
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 ...
0
votes
1
answer
83
views
How do I get a phone_number field in enum MessageEntityType in Pyrogram Python?
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: ...
0
votes
0
answers
50
views
Need Telegram Api Assistance to get Channel messages
I need the help of a Telethon api expert to solve this issue.
Here is the working code:
from telethon import TelegramClient, events, sync
api_id = 123
api_hash = 'abc123456'
client = ...
0
votes
1
answer
110
views
Send gif animation by telethon?
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....
1
vote
0
answers
62
views
Nginx proxy_pass to Telegram Bot API causing intermittent timeouts when adding Telegram server
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 ...
2
votes
1
answer
288
views
Telegram Bot API: Create a link to a specific message in a private chat with a chatbot
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 ...
0
votes
0
answers
52
views
Getting information of archived dialouges using telethon
I'm trying to use telethon to get the information of archived folders, I've noticed that in telegram if you delete an archvied chat and create it again it goes to the archive again, so I wanted to ...
0
votes
1
answer
266
views
Telegram Login Widget on Native Apps - Broken fragmet
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 ...
0
votes
0
answers
62
views
How to Dynamically Update Telegram Chats Subscribed by a Telethon Userbot Without Restarting?
I am using a Telethon userbot to monitor messages across all chats (groups, channels, etc.) that an account is subscribed to. However, I have encountered two problems:
New chats are not tracked after ...
0
votes
1
answer
2k
views
Telegram MiniApp: How do I share media to users from within the MiniAPP?
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 ...
0
votes
1
answer
88
views
WTelegramClient Messages_GetBotCallbackAnswer always throw BOT_RESPONSE_TIMEOUT exception
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(...
0
votes
0
answers
222
views
Telegram bot cannot use file_id for sending the file that he got one day ago
While creating a telegram bot, I encountered the problem that the bot cannot use file_id of the file which I sent to the bot about 1 day ago.
I am using aiogram and I have the similar lines in the ...
0
votes
3
answers
394
views
Validating data received via the Mini App does not work
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 ...