Похожие чаты

Hello everyone, my question is this: how do i get

the last message from the telegram channel in such a way that i can use not only the text of the post in the future, but also the pictures / videos that are in this post?

11 ответов

9 просмотров

explain your goal. storing a usable reference to a message media permanently locally is not possible for user accounts

Dimonka-Limonka Автор вопроса
⎞ .·. ⎝ ⎝
explain your goal. storing a usable reference to a...

yes, of course, I need to somehow receive the data of the posts of the telegrams of the kaeals in order to form a copy of the posts through, but already in the telegram bot. I thought maybe these messages can be forwarded through the account using telethon. or how to get the data of these messages.

Dimonka Limonka
yes, of course, I need to somehow receive the data...

You can forward the messages from an 'account' or userbot to a bot and store it however possible, do you use telethon for the bot too?

Dimonka-Limonka Автор вопроса
Dimonka Limonka
Well, thank you. No, i use aiogram for bot..

You just forward the messages from user account to the bot and get a file_id in the aiogram, bot's media won't expire like users. but no way to pass the media from userbot to bot unless you send it a copy, each media needs account-unique access hash.

Dimonka-Limonka Автор вопроса
⎞ .·. ⎝ ⎝
You just forward the messages from user account to...

Always when i try to forward full post, i recieve only one image(if post have more than one, and text also)

Dimonka Limonka
Always when i try to forward full post, i recieve ...

gallery messages are multiple messages in the API. do you always try to get the latest message?

Dimonka-Limonka Автор вопроса

Yes, i tried last, because i need last message, wrong way?

Dimonka Limonka
Yes, i tried last, because i need last message, wr...

show me your coc- code, do you use get_messages or events or what to get the latest message, you need to just expand on the code it to get all the gallery images, since they're more than one message

Dimonka-Limonka Автор вопроса
Dimonka Limonka
https://pastebin.com/9GQFC7in

if any latest message had a grouped_id, you need to fetch 9 previous messages at least. (gallery can be up to 10 messages), something like that

Похожие вопросы

Обсуждают сегодня

Господа, а что сейчас вообще с рынком труда на делфи происходит? Какова ситуация?
Rꙮman Yankꙮvsky
29
А вообще, что может смущать в самой Julia - бы сказал, что нет единого стандартного подхода по многим моментам, поэтому многое выглядит как "хаки" и произвол. Короче говоря, с...
Viktor G.
2
@Benzenoid can you tell me the easiest, and safest way to bu.y HEX now?
Živa Žena
20
This is a question from my wife who make a fortune with memes 😂😂 About the Migration and Tokens: 1. How will the old tokens be migrated to the new $LGCYX network? What is th...
🍿 °anton°
2
30500 за редактор? )
Владимир
47
а через ESC-код ?
Alexey Kulakov
29
What is the Dex situation? Agora team started with the Pnetwork for their dex which helped them both with integration. It’s completed but as you can see from the Pnetwork ann...
Ben
1
Гайс, вопрос для разносторонее развитых: читаю стрим с юарта, нада выделять с него фреймы с определенной структурой, если ли чо готовое, или долбаться с ринг буффером? нада у...
Vitaly
9
Anyone knows where there are some instructions or discort about failed bridge transactions ?
Jochem
21
@lozuk how do I get my phex copies of my ehex from a atomic wallet, to move to my rabby?
Justfrontin 👀
11
Карта сайта