tgcf icon indicating copy to clipboard operation
tgcf copied to clipboard

Markdown parse errors.

Open cold-nagai opened this issue 1 year ago • 2 comments

Describe the bug tgcf (or Telethon, i should say) applies formatting when forwarding with errors.

To Reproduce Run tgcf in docker and resend a couple of messages in question with captions plugin enabled. https://t.me/CryptoEarnImp/8359 https://t.me/sunscryptNews/2624 https://t.me/crypton_off/10691

Additional context I wrote a small addition to TGCFs caption plugin to apply 'forwarded from' and some channel names also tend to break formatting. Message taken from https://t.me/UnderHyped:

caption.py

def modify(self, tm: TgcfMessage) -> TgcfMessage:
        tm.text = f"{self.caption.header}{tm.text}\n\n{self.caption.footer}[{tm.title}](https://t.me/{tm.channel_id})" 

init.py self.title = tlutils.get_display_name(self.message.chat)

Example image

cold-nagai avatar Jul 04 '23 05:07 cold-nagai

Definitely an upstream issue. Can we bump telethon version? https://github.com/LonamiWebs/Telethon/pull/4268

@aahnik

cold-nagai avatar Dec 23 '23 11:12 cold-nagai

@cold-nagai sure! In the next release, I am planning to update all dependencies of tgcf to their latest version

aahnik avatar Dec 23 '23 12:12 aahnik