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?
explain your goal. storing a usable reference to a message media permanently locally is not possible for user accounts
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.
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?
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.
Always when i try to forward full post, i recieve only one image(if post have more than one, and text also)
gallery messages are multiple messages in the API. do you always try to get the latest message?
Yes, i tried last, because i need last message, wrong way?
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
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
Обсуждают сегодня