Questions tagged [mtproto]

The protocol is designed for access to a server API from applications running on mobile devices. It must be emphasized that a web browser is not such an application.

The protocol is subdivided into three virtually independent components:

  • High-level component (API query language): defines the method whereby API queries and responses are converted to binary messages.
  • Cryptographic (authorization) layer: defines the method by which messages are encrypted prior to being transmitted through the transport protocol.
  • Transport component: defines the method for the client and the server to transmit messages over some other existing network protocol (such as, http, https, tcp, udp).
59 questions
0
votes
1 answer

Analog searchChatsNearby method in MTProto

there is a searchChatsNearby method in TDLib (https://core.telegram.org/tdlib/docs/classtd_1_1td__api_1_1search_chats_nearby.html), because TDLib uses the MTProto protocol, there should be an analog in the protocol, but I can't find it in the scheme…
0
votes
0 answers

Pyrogram stops handle updates after "updatesTooLong" response

I would like to write a bot that will listen to the specific chat and save messages to the local storage. After starting the bot app, everything works properly, but after some time I can see such information in the logs: pyrogram.client { '_':…
Yaroslav Hladkyi
  • 305
  • 2
  • 13
0
votes
0 answers

Telethon: Can I generate a specific 'Padding' in send message?

I use Telethon for creating a Telegram client. I want to send a message with specific 'Padding' when I use TelegramClient Class and send_message() function. I edit padding variable at encrypt_message_data() function on network/mtprotostate.py but…
majidmc2
  • 1
  • 2
0
votes
1 answer

Is there a workaround to the 10,000 Telegram server query limit when trying to get all chat members' data with Pyrogram/Python?

I have to get data from all members of a list of Telegram chats – groups and supergroups –, but, as Pyrogram documentation alerts, it is only possible to get a total of 10,000 ChatMember results in a single query. Pyrogram's iter_chat_members method…
vmussa
  • 71
  • 7
0
votes
1 answer

Get CHAT_WRITE_FORBIDDEN using MadelineProto with Telegram API

I'm using the MadelineProto project for php to interact with Telegram API. Maybe this error has nothing to do with MadelineProto... anyway, I successfully created a supergroup but any other method I call after, gives me a CHAT_WRITE_FORBIDDEN…
nulele
  • 328
  • 3
  • 8
0
votes
0 answers

Telegram does not send authorization code if the request was sent from telethon code hosted on Heroku

I have a problem when using the Telethon Python client for Telegram for logging in. The script below works perfectly fine when I run it on my own laptop: it prints a SentCode object, Telegram sends me a confirmation code, and I use it to log…
David Dale
  • 10,958
  • 44
  • 73
0
votes
1 answer

MTProto msg_id replay-attacks

The MTProto documentation says, referring to the unique msg_id: to counter replay-attacks the lower 32 bits of msg_id passed by the client must not be empty and must present a fractional part of the time point when the message was created When it…
LppEdd
  • 20,274
  • 11
  • 84
  • 139
0
votes
1 answer

MTProto connection closed by server

I am writing an MTProto client, however when I send a message my connection is closed. Under what conditions might MTProto close my connection?
0x777C
  • 993
  • 7
  • 21
0
votes
1 answer

MTProto string type: are lengths measured in bytes or UTF-8 string length?

Looking at https://core.telegram.org/type/string it's unclear to me whether the length discussed here is the UTF-8 string length, or the number of bytes the string has been encoded into.
0x777C
  • 993
  • 7
  • 21
0
votes
1 answer

Does Telegram API allow search user by Peer ID?

How do I make use of Telegram API (not Telegram Bot API)'s functions? I read from the official API documentation that there is a function named users.getFullUser. How can I make use of this function to achieve my goal? Some said I need to use raw…
Raptor
  • 53,206
  • 45
  • 230
  • 366
0
votes
1 answer

Why do I not get any response from Telegram DC?

I am trying to follow Telegram's authorization sample but do not get any response from the server: msg = """ 0000 | 00 00 00 00 00 00 00 00 4A 96 70 27 C4 7A E5 51 0010 | 14 00 00 00 78 97 46 60 3E 05 49 82 8C CA 27 E9 0020 | 66 B3 01 A4 8F EC E2…
Andrei
  • 10,918
  • 12
  • 76
  • 110
0
votes
1 answer

Connection to dc in telegram api java

I try to connect to telegram using java telegram api. And on this code it throws exception private static void createApi() throws IOException { apiState = new ApiStorage(true); api = new TelegramApi(apiState, new AppInfo(API_ID,…
-1
votes
0 answers

How to upload a file to Telegram servers partially?

I want to send one large video that is accessible via a public file url to a Telegram chat by chunks. And these chunks should be uploaded separately. The reason for that is that my server is really weak and I dont want to get the video by making a…
1 2 3
4