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
1
vote
1 answer

Find out ids for telegram instances

Where can I found ids (class ids) for telegram objects that aren't listed in API TL-Schema? (I mean id is like #bc799737 for boolFalse#bc799737) For example, on Perfect Forward Secrecy page there are such instances…
Sovan
  • 168
  • 1
  • 3
  • 12
1
vote
1 answer

Parsing decrypted encrypted_data in Telegram

I am trying to implement receiving/sending messages via Secret chat in Telegram (~something like own client), but encountered some problems while interpreting decrypted data. I've read the schema, but can't match it with my data. To be more…
Sovan
  • 168
  • 1
  • 3
  • 12
1
vote
0 answers

TelegramAPI MTProto checkPone do not responde

I tried to implement telegram api with python. base code forked form https://github.com/datamachine/twx and I want to add checkPhone and sendCode feature, but server always returns result that cannot be understood. here is my code import os import…
Junwon Lee
  • 301
  • 3
  • 3
0
votes
0 answers

Telegram how to get Photo Message URL Link (without bot & with @mtproto/core)

I am new to using Stack Overflow, and I apologize in advance if I make any mistakes or do something incorrectly. I've been struggling with a problem for the past 3 days and can't figure out how to get photo/images messages from a channel in the form…
0
votes
1 answer

Wtlegramclient how to call a user

I can't figure out how to call using Wtelgramclient C#.I looked at the documentation, but I couldn't figure it out, or rather make g_a_hash and PhoneProtocolCall I have already gone through the documentation more than once and tried to implement it…
0
votes
0 answers

Get file_id or file_url of a channel message of telegram API?

I am getting messages from a telegram channel via messages.getHistory. The result is messages.channelMessages which contains a list(Vector) of message. Each message can have a messageMedia attached to it which mainly are messageMediaDocument. The…
Soheil
  • 1,201
  • 2
  • 11
  • 18
0
votes
0 answers

How to fix Pyrogram client creation error in DearPyGui app?

I cant create pyrogram client to input an user accaunt data to create program which help to use accaunt automaticly in telegram. when I get text from lables api hash and api id and send it in gunc registr it gives an error when I try to create a…
0
votes
0 answers

Node.js Ignore fetching replies in a telegram channel

Im trying to write a code that fetches the latest messages of a specific private telegram channel. I want to to ignore messages replies in the channel, I couldnt find anything to help me with that. this is my code const { api } =…
Ryan
  • 129
  • 1
  • 12
0
votes
0 answers

Check mtproto proxy availablity by android programming

I want check mtproto proxy by android java programming language. I tried some ways like: new Socket().connect(a, b); or InetAddress.getByName(a).isReachable(b); But i want use other way or better way.
Ali Afkar
  • 1
  • 2
0
votes
0 answers

Telegram Api: messages.sendMessage

i am trying to write a text to my channel trought telegram api in js. I have a problem, when i perform this call to write myself it works, but when i try to send the text to my channel with peer: { _: 'inputPeerChannel', …
Frost
  • 1
  • 1
0
votes
0 answers

can use telegram MTPROTO proxies in Axios?

My host server is in Iran. I would like to use Axios requests to use the telegram robot API. Can telegram MTPROTO proxies be used instead of proxy? Thanks in advance for your tips.
moh na
  • 1
0
votes
0 answers

How to ping over MTProto proxy?

I want to retrieve the ping value of MTProto proxies to find out if the proxy is working or not. If you have worked with the Telegram interface, you would have seen that in the proxies section, it shows a ping value in (ms) for each of the…
0
votes
1 answer

FILE_REFERENCE_EXPIRED at upload.getFile with inputPhotoFileLocation

Can't get content from method upload.getFile using inputPhotoFileLocation, getting exeption FILE_REFERENCE_EXPIRED, readed lots of forums but cant get answer I'm using MTProto client on js this.call('upload.getFile', { location: { _:…
0
votes
1 answer

Pyrogram: MTProto to read and copy telegram messages

I'm using a pretty simple code to listen to two specific telegram input channels and copy all received messages to one target channel. I'm using Pyrogram, which implements MTProto, because I'm NOT the admin of the source channel, I'm just a reader -…
tim
  • 9,896
  • 20
  • 81
  • 137
0
votes
0 answers

MTProto Telegram API PEER_ID_INVALID for User B, but not A

I have the following problem: When successfully connected to User A, i can send messages to another User X like that: await this.api.call('messages.sendMessage', { peer: { _: 'inputPeerUser', user_id: *****123*****, …
jo-chris
  • 362
  • 6
  • 13