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
15
votes
1 answer

Telegram: get fileid from telegram client

Telegram bots use fileid to download a file. How can I get this fileid from Telegram client (My Unofficial version) ? Files in mtproto have this location class that indicates their address. File Location Parameters dc_id int Number of…
Behrouz.M
  • 3,445
  • 6
  • 37
  • 64
10
votes
2 answers

How do I use Telegram API without a bot?

I don't need a reply bot. I want to just make a read-only call to read the channel history. Probably I need †he method https://core.telegram.org/method/messages.getHistory but documentation https://core.telegram.org/api#getting-started does not even…
Nakilon
  • 34,866
  • 14
  • 107
  • 142
10
votes
3 answers

How does one make a Telegram MTProto protocol api call?

For instance to call/wrap the auth.sentCode method (link below): https://core.telegram.org/method/auth.sendCode I have tried: var url = "https://149.154.167.40"; var data = "(auth.sendCode \"PHONE_CODE+NO\" 0 APP_ID \"SECRET_HASH\" \"en\")"; …
Mark Redman
  • 24,079
  • 20
  • 92
  • 147
8
votes
1 answer

How to delete/destroy my telegram api_id and api_hash

For some reason i need to delete/destroy my api_id and api_hash. In https://my.telegram.org/apps there is no options/button to doing this action. And i've already tried with deleting my account from telegram But my api_id and api_hash is still…
8
votes
1 answer

Telegram, tracking message edit/delete and editing my own messages (Client, not Bot API)

So I'm trying to implement the logging of telegram chats into my ELK storage in a proper way, and the existing solution with tgcli is too old (I also have a PoC which logs message edits from Android client via Xposed, but its implemented on top of…
kagali-san
  • 2,964
  • 7
  • 48
  • 87
7
votes
0 answers

Tunnel MTPROTO proxy on whole device

Title says all, i need a way or an specific app to tunnel whole device with a MTPROTO proxy. (No other proxies, they are not useful for me because of some reasons) Any ideas?
Ali Tofighi
  • 79
  • 1
  • 3
7
votes
1 answer

Telegram Client in C

I am in the process of investigating a Telegram client in C so that I can write a client for the Pebble smartwatch/s. I understand the Pebble side, and all of the Telegram methods shown here, but I have absolutely no clue how to send those in C. I…
6
votes
1 answer

Telegram MTProto Java: how to get user token

This says that to get a user's token I need to send a request auth.sentCode#efed51d9 phone_registered:Bool phone_code_hash:string send_call_timeout:int is_password:Bool = auth.SentCode; somewhere? I've read it's a MTProto request, but I'm not sure…
parsecer
  • 4,758
  • 13
  • 71
  • 140
5
votes
1 answer

Can the telegram auth SDK be used within a browser

I'm struggling to get my head around the basics, and to find somewhere to ask for help. I know that the first two questions are a bit wooly by Stack overflow standards. is there a forum/channel somewhere for a dialog with people trying to use…
Simon H
  • 20,332
  • 14
  • 71
  • 128
4
votes
1 answer

how decrypt telegram web request

i want create app that controll telegram such as auto post and add contact automatic and answer message auto and etc but when i inspect element and see request it's encypted here is…
taher
  • 159
  • 1
  • 10
4
votes
1 answer

Telegram API create public channel

How I can create public channels with Telegram API? I've tried https://github.com/danog/MadelineProto, and it worked, but it creates only a private channel.
Marat_Galiev
  • 1,251
  • 5
  • 21
  • 31
3
votes
1 answer

Why is telethon showing an error when trying to get users from a telegram group?

I am trying to get users from a group using a telegram bot . I am using python's telethon library for this purpose . Here is the code and the full error message - from telethon import TelegramClient, events API_ID = 123 API_HASH = '##' BOT_TOKEN …
shadow
  • 33
  • 4
3
votes
0 answers

C++ dynamic return type with special case

I'm trying to do something like a runtime-defined function return type in C++. I have four different classes (actually, a lot more, but let's make this problem simple), the class Factory, the class Parent and two child classes FirstChild and…
3
votes
1 answer

How to specify and implement Telegram API methods in Requests?

I am trying simply connect to Telegram API servers and get response. I've create a app in my.telegram.org, Now I have my api_id, api_hash and also IP address to Telegram api MTproto serever. for getting start documentation says we have to Authorize…
Ali Crash
  • 458
  • 2
  • 5
  • 15
2
votes
0 answers

Is is possible to write own telegram library using MTPROTO API using Python?

I have searched many things in the google and cannot find document. I found MTPROTO API document from telegram official web site but they dont provide any guide to use in python and only explain those APIs. I know telethon can be used. Is is…
Daniel Wu
  • 31
  • 5
1
2 3 4