The API for the Telegram messaging service. More information on the API and the TDLib library (for the AP available for multiple programming languages), can be found at
Questions tagged [telegram-api]
237 questions
1
vote
1 answer
Python Telegram Bot: show message history for new group members
With a python based telegram bot that should help to setup group settings I want to hide/unhide the message history for new group subscribers. I am using the python-telegram-bot API wrapper (documented here).
For setting other permissions there is a…

sof
- 33
- 7
1
vote
2 answers
Telegram API Custom Emoji sending in message
As described in api doc for telegram - i can send custom emoji in message.
As update i receive somethings like this:
"text": "",
"entities": [
{
"offset": 0,
"length": 2,
"type": "custom_emoji",
"custom_emoji_id":…

Windwail128 Qwe
- 23
- 4
1
vote
1 answer
Send message to telegram with no access to DNS
Is there any option to send message to telegram while there is no access to DNS server (no option to resolve api.telegram.org url) ?
Tried with 149.154.167.220 instead of api.telegram.org - no luck

Ilex
- 11
- 1
1
vote
1 answer
Using MadelineProto to build a channel management app
So I'm trying to build a mobile application that logs users in using telegram authentication API. They can register their channels in the app for inviting other users or they can join other users channels.
After searching for the best…

reza z
- 11
- 2
1
vote
0 answers
Action not being executed on indented lines of a list
So I am using Python 3 to create a script with Telegram API but have come across a pickle.
Essentially I want anything I post to one channel to automatically be posted to a list of other channels.
As there are a lot of channels I am pretty sure I…

Mimi Beard
- 11
- 2
1
vote
1 answer
Is it possible to get all my chat ids in telegram bot api?
I'm writing a bot that will send the same message for many people I've ever communicated in telegram. So I need to get all my old chat_id's.
All I found is just to store chat_id when I receive a new message as here Retrieve all chat ids using…

Cross
- 497
- 1
- 3
- 13
1
vote
0 answers
Telegram API: How to make message history for new group users visible
I want to make message history for new group users visible. For now I have managed to find channels.togglePreHistoryHidden method in the API but it takes channel as an argument, not a group. There is no similar method for groups. Moreover, as far as…

BigDan
- 11
- 1
1
vote
1 answer
How to use mtproto telegram api using curl or postman?
I dont want to use python libraries like telethon to interact with telegram MtProto api, instead I want to hit the api directly with http-request like curl or via Postman
The reason is that, the actual api response and the library response for an…

John Byro
- 674
- 3
- 13
1
vote
1 answer
How to send a Telegram message to a username using bot api or telegram api?
Hi I am trying to build a website login system where users are able to log in using their telegram. I would like to achieve this workflow:
User selects to login/sign up via telegram.
User enters their username (@ExampleJoe).
A 6-digit verification…
user16013401
1
vote
1 answer
C# WTelegramClient Telegram-API How to programmatically click a button in a message from Telegram-Bot
The program communicates with Telegram-Bot. A text message is sent to the bot. The bot responds to the message. The answer contains 3 buttons. Question: How to click on a button programmatically?
Create a Telegram client:
_client = new…

ShuherVit
- 31
- 3
1
vote
1 answer
Support with Telegram Api - java
Im trying to build a telegram bot, I've started
with this link
https://github.com/rubenlagus/TelegramBots
added maven dependency
org.telegram
telegrambots
…

user1572151
- 21
- 6
1
vote
1 answer
How to get a person telegram link by only his phone number via API?
Is there a way to get person's telegram via API or telegram bot by only his phone number and not adding him into contact?

Khemrath
- 58
- 7
1
vote
1 answer
WTelegramClient ban account
Good afternoon friends; please advise.
I used the WTelegramClient library.
Did everything as described on the Readme page
And right after that, my account was blocked.
What have I done wrong?
The code I used
static string Config(string what)
{
…

Roman
- 21
- 1
1
vote
1 answer
Get channel message history and mark views with WTelegramClient
How can I:
Get a public channel message history [Text, Photo, Video ...]
Mark these messages as a viewed
With Telethon (python), we can use this method:
for message in client.get_messages(channel, limit=int(count)):
result =…

Ebrahim Shiasi
- 11
- 2
1
vote
1 answer
Why do I get the following error when I try to edit message in group: ETELEGRAM: 400 Bad Request: message to edit not found?
Edit functionality works properly in private chat, but doesn't work in group chat. What might be the reason of that behaviour?
I am getting the following error:
Unhandled rejection Error: ETELEGRAM: 400 Bad Request: message to edit not found
at…

Dzhakhar Ukhaev
- 305
- 1
- 10