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
2
votes
0 answers

mtproto/core Telegram replay to another Channel

i want collect news from different channels and echo them in a second channel, with the code i can read channels(not all but most). I stuck now on the echo problem and have no clue about how i can do this, mtproto is completely new to me, thanks. Im…
StefanBD
  • 334
  • 3
  • 14
2
votes
1 answer

How to make a query to Telegram API in cmd or bash

One of the first steps to start using the API is this. I have MTProto server (149.154.167.40:443), phone number, api id, hash... How do I exactly do it? How do I make such a query? I sooo don't get it. Thanks in advance
Andrey Lyubimov
  • 663
  • 6
  • 22
2
votes
2 answers

Convert TL Language (mtproto) type to C#

I am using tl-language compiler to compile schema of Telegram Api TL language described in https://core.telegram.org/mtproto in C# There is a compiler that compile tl-language to C# classes https://github.com/everbytes/SharpTL.Compiler But it can…
Mahdi
  • 649
  • 8
  • 18
2
votes
1 answer

how to call main telegram api methods in php

I want to use main telegram api to sign in and manage telegram account from php code. I read telegram documents and read all last topics and related questions like: Calling Telegram API to create a feedreader bot Accessing Telegram API via…
1
vote
1 answer

What is access_hash in telegram API?

When you contacts.resolveUsername, the result always contains both id and access_hash. It creates confusion for API users, as to why you are only able to resolve a user/chat/channel only by their username or by their (id, access_hash) pair (eg. here…
winwin
  • 958
  • 7
  • 25
1
vote
0 answers

Telegram Weird Server names

I am from Iran. All Mtproto proxies have been banned by the GWF (the great firewall) and It's impossible to use them, although somehow someone made a weird Mtproto proxy with even weirder server name! The Server name:…
1
vote
0 answers

How to connect mtproto telegram client without library / framework?

I've been looking for a way to make a connection to the telegram api for a long time, but I didn't find anything suitable i have read this: https://core.telegram.org/mtproto and this: How to implement authorization using a Telegram API? But I can't…
1
vote
1 answer

Not getting updates from Telegram API

I'm using mtproto-core (https://github.com/alik0211/mtproto-core) from a Vue application to interact with Telegram API. Everything works fine except when I try to get updates, I followed the example code but it just doesn't work. Any help will be…
J. Fer
  • 21
  • 1
1
vote
0 answers

How i can install telegram-mtproto on Ubuntu 20.04 CLI?

I want to install telegram-mtproto by tyhe following command on Ubuntu 20.04 CLI. npm install --save npm install --save telegram-mtproto@beta but when i execute the command i gain the following errors ! npm WARN saveError ENOENT: no such file or…
Parsika
  • 79
  • 5
1
vote
1 answer

Telegram TCP obfuscated transport not receiving data

I'm trying to implement the MTProto transport obfuscation capability described here. I've followed instructions letter per letter, to no avail: data is sent, e.g. for ReqPqMulti, but upon reading the response, e.g. ResPQ, the input stream blocks…
LppEdd
  • 20,274
  • 11
  • 84
  • 139
1
vote
1 answer

Run MTProxy remotely by PHP exec on Windows server

I installed PM2 and node.js on the Windows server to run JSMTProxy-master script. The command for the run proxy is: (pm2 start "JSMTProxy-master\mtproxy.js" -i max) and it executed successfully in the CMD window with no problem. Now I want to…
FarZan Takhsha
  • 154
  • 1
  • 1
  • 11
1
vote
1 answer

Getting TypeError becuase of undefined context

I am trying to make a telegram bot using their apis and MTProto. I imported telegram-mtproto into my code and received an error: ERROR in ./node_modules/telegram-mtproto/es/worker.js…
maksym
  • 21
  • 2
1
vote
0 answers

how to add MTPROTO proxy to Guzzle

I'm using Guzzle in my php project , I like to set proxy for guzzle with mtproto. can I do that? as you know MTproto proxies has a server address , a port and a secret key to connect , how to should pass these three parameter to guzzle to use that,…
soha1410
  • 555
  • 5
  • 14
1
vote
0 answers

MTproto server works inefficiently after a short time

I set up a mtproto server on a digitalocean droplet but after a few hours it starts to get slow and connect and disconnect continuously although the only person is using it is me. I used iShift to set up my server and I also tried…
1
vote
0 answers

Implementation TL-Schema for Telegram API with java

I want to implement Telegram API layers with java. I found TL-Schema for Telegram (Layer 71) in this link : https://tjhorner.com/tl-schema/ Is there a code-generator automatically TL-Schema to Java classes?
aziminia
  • 449
  • 1
  • 5
  • 15