323 questions
- Bountied 0
- Unanswered
- Frequent
- Score
- Trending
- Week
- Month
- Unanswered (my tags)
-1
votes
1
answer
63
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 ...
1
vote
0
answers
91
views
Pyrogram client appears as "Envoy Telegram Desktop/Android" — how can I remove the "Envoy" prefix?
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(
&...
3
votes
2
answers
1k
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
155
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 ...
0
votes
1
answer
155
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
659
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
67
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 ...
1
vote
1
answer
510
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
...
0
votes
1
answer
133
views
Get messages from a specific topic in a group
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.
...
1
vote
1
answer
226
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
95
views
How to monitor new users joining a Telegram channel using Telegram API?
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.
...
0
votes
0
answers
82
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
0
answers
82
views
SendMultiMediaRequest fails silently when sending multiple files [Python/Telethon]
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 ...
0
votes
1
answer
146
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
143
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 ...