it just forwards in the General topic, i want it to forward in a specefic one, any ideas? Thanks you.
you may use the raw api
Found this on stackoverflow, is this what you meant by Raw Api he friendly client.forward_messages method does not yet expose a way to forward messages to a specific topic. However, you can use ForwardMessagesRequest directly like so: from telethon import TelegramClient, functions client = TelegramClient(...) client(functions.messages.ForwardMessagesRequest( from_peer=source_chat, # <- chat where the messages exist id=[123, 456], # <- message ids to forward from source_chat to_peer=destination_chat, # <- where to forward the messages top_msg_id=topic_id, # <- topic id ))
yea, top_msg_id doesn't exists in the client method, because. you can always use raw api methods.. telethon is easy to toggle and most helpers are exposed to integerate it with raw ones
Обсуждают сегодня