Download Telegram Java

0 views
Skip to first unread message

Kirstie Bendel

unread,
Jan 24, 2024, 10:09:53 PM1/24/24
to apmotapuc

There is pretty much documentation about the Telegram API, found at , and I've already downloaded mtproto, telegram-api and tl-core from github, and compiled my own library jar from source by using gradle. As well, I've already written a small application, where the user clicks a button and is promted to enter his phone number, I'm using the Java-swing-Libraries and an ActionListener for this.

download telegram java


DOWNLOAD >>> https://t.co/21EwQKDxbS



Essentially you will have to fill out the blanks in the code given on GitHub in the ex3ndr/telegram-api repository. If you've got the library Jar file you built and the tl-api-v12.jarfile on your Eclipse project's Java build path, then look at the RPC Calls section of the README and

The TelegramApi object represents your connection to the remote service, which is a request response style of API. RPC calls are made via the doRpcCall method, which takes a request object from the org.telegram.api.requests package (the TLRequestAuthCheckPhone type in the example) filled in with the appropriate parameters. A response object (TLCheckedPhone above) is then returned with the result when it is available.

I fail to find a simple yet complete skeleton JAVA code of a telegram client using the Telegram API.All I find is fractions of code, which are used by other code, or bot specific code which I don't need. All I want to do are simple things like login to my account, read my channels, etc.

I used older version of telegram-api, telegram-cl, telegram-mt and other depends to build Telegram S Edition, I success build it, but older version using old layer of telegram api so not supported new features.You can find older versions on github like: -api/tree/da63cf65f7332d7a4f17626de9b00e9030ecf5cc

Java.Trojan.GenericGBA.30456
C:\openHAB3\addons\openhab-addons-3.1.0.kar=>repository=>org=>openhab=>addons=>bundles=>org.openhab.binding.telegram=>3.1.0=>org.openhab.binding.telegram-3.1.0.jar=>com/pengrad/telegrambot/passport/decrypt/Aes256Cbc$Aes256.class

I downloaded the 3.2.0 milestone and the Bitdefender scan came to the same result:
Java.Trojan.GenericGBA.30456
E:\openHAB3\addons\openhab-addons-3.2.0.M3.kar=>repository=>org=>openhab=>addons=>bundles=>org.openhab.binding.telegram=>3.2.0.M3=>org.openhab.binding.telegram-3.2.0.M3.jar=>com/pengrad/telegrambot/passport/decrypt/Aes256Cbc$Aes256.class

I also downloaded the 3.2.0 snapshot and the Bitdefender scan came to the same result:
Java.Trojan.GenericGBA.30456
E:\openHAB3\addons\openhab-addons-3.2.0-SNAPSHOT.kar=>repository=>org=>openhab=>addons=>bundles=>org.openhab.binding.telegram=>3.2.0-SNAPSHOT=>org.openhab.binding.telegram-3.2.0-SNAPSHOT.jar=>com/pengrad/telegrambot/passport/decrypt/Aes256Cbc$Aes256.class

For Java, there are multiple client libraries (java-telegram-bot-api, TelegramBots, etc.) available Telegram. These libraries offer a convenient way to access the different Telegram APIs. However, for this example we're not using any of those libraries as it's just a HTTP GET call.

Types used in requests (Keyboard, InlineQueryResult, ParseMode, InputMessageContent...) are in com.pengrad.telegrambot.model.request package.
When creating a request's type, required params should be passed in the constructor, optional params can be added in chains.

Пишем команду /newbot и вводим имя для нашего нового бота. Имя должно быть уникальным и заканчиваться на bot. По данному имени нас будут искать в telegram.

356178063d
Reply all
Reply to author
Forward
0 new messages