tdlib / td

Cross-platform library for building Telegram clients
https://core.telegram.org/tdlib
Boost Software License 1.0
7.11k stars 1.44k forks source link

How to forward image and video messages from a channel to a topic in a group? #2520

Closed patzu closed 1 year ago

patzu commented 1 year ago

First of all, I can forward any type of message (video, text, image, etc) from a source channel to a default topic of a group.

Secondly, I am sending simple text message from source channel to any of the topics in a group as well.

My problem is, I want to forward or send other type of messages as well but unable to get photo from the message object and build InputMessageContent objet and send it!

My question is: Is it possible to forward or send complex messages like (image with caption, video with text) to topics other than default using TDLib?

levlam commented 1 year ago

forwardMessages has parameter message_thread_id for this.