skip to Main Content

How to create topics in telegram chat with telethon

`@loader.tds class testr(loader.Module): '''name''' strings = { "name": "test", } async def client_ready(self, client, db): self.test_channel, _ = await utils.asset_channel( self._client, "Test - chat", "check descr", silent=True, archive=True, _folder="m", ) await self.client(functions.channels.InviteToChannelRequest(self.test_channel, ['@my_bot'])) await self.client(functions.channels.EditAdminRequest( channel=self.test_channel, user_id="@my_bot", admin_rights=ChatAdminRights(ban_users=True, post_messages=True, edit_messages=True),…

VIEW QUESTION

Telegram hash validation in Java

For the sake of me, I can't get to validate a Telegram hash in Java. I have a working JS example compiled from different sources that I've reduced to barebones to illustrate this question. function main() { var k =…

VIEW QUESTION

X-Telegram-Bot-Api-Secret-Token not present in headers

First, I have deleted my webhook: curl "https://api.telegram.org/bot6359000876:XXX/deleteWebhook" Then, I have set my webhook: curl "https://api.telegram.org/bot6359000876:XXX/setWebhook?url=https://XXX.execute-api.us-east-1.amazonaws.com/development/webhook&secret_token=abc" When I check for the X-Telegram-Bot-Api-Secret-Token in incoming request from Telegram, the header is not present. What I am doing wrong?

VIEW QUESTION

Telegram webapp scrolling issue

I'm building app with Bubble.io and use it in Telegram webapp. When I pull down (scrolling up) on top of the page Telegram recognise it as close gesture and trying to minimize the window of app. Maybe someone could explain…

VIEW QUESTION
Back To Top
Search