I
I
Ilya2021-12-11 21:48:19
Python
Ilya, 2021-12-11 21:48:19

How to get a description of a channel's telegrams?

Good afternoon, I need to somehow get a description of a random telegram channel, I need to use this in aiogram, I did not find a method for this, maybe I was looking badly.
It would be cool to turn through aiogram, but other solutions, through requests, are also acceptable

Answer the question

In order to leave comments, you need to log in

1 answer(s)
A
alexbprofit, 2021-12-11
@alexbprofit

from telethon.tl.functions.channels import GetFullChannelRequest
# creating client here
ch = client.get_entity("@mychannel")
ch_full = client(GetFullChannelRequest(channel=ch))
ch_full.full_chat.about

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question