telegram-bot-api
telegram-bot-api copied to clipboard
Telegram Bot API server
public static Boolean checkHash(String token, String hash, String initData) { try { byte[] by = hmacSHA256("WebAppData", token); Mac hmacSha256 = Mac.getInstance("HmacSHA256"); SecretKeySpec secret_key = new SecretKeySpec(by, "HmacSHA256"); hmacSha256.init(secret_key); hmacSha256.update(initData.getBytes()); byte[]...
i am getting this error
i am getting this error ❌ An error occurred: Invalid token, But i am definitely sure that my token is correct i tried to switch between local server and telegram...
In the new update, the CopyTextButton is used to copy text to the clipboard. It would be great to also have a PasteTextButton that pastes text from the clipboard into...
I was using ForwardMessages and CopyMessages and I noticed that if one of the message_ids is not delivered, the whole request returns 400 ok: false, failed to send message. The...
Dear support service. When developing my first application, I took your get-chats.js script as a sample. I ran it on my computer. At first, there were many errors related to...
Bots that I use for posting are not working When I try to create post it doesn't take to the next step
Error
 What is the cause of this error you see in the image?
Hello. How can I use, for example, a file located in the path /root/mymusic.mp3 to telegram-bot-api that is running locally in methods such as sendAudio and sendDocument? I tried the...
I propose adding a method to the Bot API to delete all messages from a group member (possibly including other bots), like users can do already with the `channels.deleteParticipantHistory` MTProto...