The ultimate tool to automate custom telegram message forwarding. Live-syncer, Auto-poster, backup-bot, cloner, chat-forwarder, duplicator, ... Call it whatever you like! tgcf can fulfill your custom needs.
When TGCF trying to forward a message from a private channel that contains a media file(.ogg in my example) with a caption length > 1024 characters, we receive an error:
MediaCaptionTooLongError: The caption is too long (caused by SendMediaRequest)
It seems to be a limitation in the Telegram API.
However, the problem is that such messages are possible to create in the official Telegram client. As a result, some messages where the author posted such captions are not being forwarded.
One possible solution is to check the number of characters in the caption and, if it exceeds 1024 characters, send the file separately along with a separate message containing the caption. But how can this be done?
When TGCF trying to forward a message from a private channel that contains a media file(.ogg in my example) with a caption length > 1024 characters, we receive an error: MediaCaptionTooLongError: The caption is too long (caused by SendMediaRequest) It seems to be a limitation in the Telegram API. However, the problem is that such messages are possible to create in the official Telegram client. As a result, some messages where the author posted such captions are not being forwarded.
One possible solution is to check the number of characters in the caption and, if it exceeds 1024 characters, send the file separately along with a separate message containing the caption. But how can this be done?