telethonchat | Unsorted

Telegram-канал telethonchat - Telethon Chat

6095

Official Telethon's chat! Rules: • Speak English • Stay on topic (questions about Telethon) • Be respectful • Don't ask to ask • Spam-related uses lead to ban • Read https://docs.telethon.dev before asking things here Read more about us @TelethonUpdates

Subscribe to a channel

Telethon Chat

/channel/TelethonChat/657398

/channel/TelethonChat/657369

Читать полностью…

Telethon Chat

use
functions.channels.GetAdminedPublicChannelsRequest() or get_dialogs

Читать полностью…

Telethon Chat

group create from me

Читать полностью…

Telethon Chat

How to get group myself

Читать полностью…

Telethon Chat

You should find a different way to link the channel message to it's forward in the group, and then reply in the group directly

Читать полностью…

Telethon Chat

Hello, I am trying to send a message to a channel where I have enabled the discussion/comments feature.

message = await client.send_message(channel, "post")

await client.send_message(channel, 'test comment', comment_to=message.id)

First, the program successfully sends a message to the channel. However, it fails to comment on the post with the following error:

telethon.errors.rpcerrorlist.BotMethodInvalidError: The API access for bot users is restricted. The method you tried to invoke cannot be executed as a bot (caused by GetDiscussionMessageRequest)

I have already made the bot an admin in both the channel and the linked discussion group, but the error persists. Does anyone know how to resolve this?

Читать полностью…

Telethon Chat

it is work for telethon.sync in sync func?

Читать полностью…

Telethon Chat

is there is method to ignore the answer just timeout it 1 sec if not answer?

Читать полностью…

Telethon Chat

what alternative for this

try:
client(GetBotCallbackAnswerRequest(
peer=bot_username,
msg_id=msg[0].id,
data=button_id
))
except:
pass

its to slow

Читать полностью…

Telethon Chat

just installed it on a new server

Читать полностью…

Telethon Chat

"sendmessagerequest" isn't an error. the part before it is the error, show that

Читать полностью…

Telethon Chat

Currently using the welcome message for them

Читать полностью…

Telethon Chat

we will be in a common chat

Читать полностью…

Telethon Chat

it could be, In your code more likely, check the "channel" pointing to what you expect that id belong to and the same for id

Читать полностью…

Telethon Chat

edit_admin is "add an admin", there is no other way to promote someone in supergroups, it implicitly does InviteToChannel on server if not joined

Читать полностью…

Telethon Chat

how can i detect new join request

Читать полностью…

Telethon Chat

Documentation for get_dialogs

Читать полностью…

Telethon Chat

what do you mean by "get group myself"

Читать полностью…

Telethon Chat

what update we receive as bot when bot got added to channel or group

Читать полностью…

Telethon Chat

Bots cannot call that method

Читать полностью…

Telethon Chat

it won't. unless you use client.loop.run_until_complete(asyncio.wait_for(...))

and must wrap the click() or client() in actual async def

Читать полностью…

Telethon Chat

try:
await asyncio.wait_for(msg[0].click(data=button_id), timeout=1)
except TimeoutError:
pass

Читать полностью…

Telethon Chat

it's as fast as Telegram server and the bot's server, ask them.

if the bot is faulty and doesn't do correct answer(), the method will wait ~15 seconds to expire, you can read about asyncio tasks to run the click in background for this case

Читать полностью…

Telethon Chat

you installed it wrong, confirm it was the correct pip for that python, minimum usable is V1.27

Читать полностью…

Telethon Chat

does anyone know how to fix this error?

Читать полностью…

Telethon Chat

because is not like i try to contact via join request, is like i contact in old way, with ID, so i encounter sendmessagerequest, i need to replicate the new way, that one is permitted with the bot api, and the way is permitted when i click in join request, and after "send message" so i can contact user, and user see in the high "xxxx is and admin of channel you request to join"

Читать полностью…

Telethon Chat

Then use a message from that user if possible

Читать полностью…

Telethon Chat

Hi and welcome to the group. Before asking any questions, please read the rules from the group's description, and don't forget to read the docs. Make sure you are using the latest version with pip3 install -U telethon, since most problems have already been fixed in newer versions.

Читать полностью…

Telethon Chat

sometimes get_messages(channel, ids=id) returns None, it's happened 3-4 times, crashing my script and it works after i restart, is it a bug?

Читать полностью…

Telethon Chat

If you're talking about group members, that's the maximum amount server returns

Читать полностью…
Subscribe to a channel