Midblyte / tmnetbot

A Telegram bot
GNU General Public License v3.0
3 stars 1 forks source link

Change message forwarding method. #5

Open gpicc opened 3 years ago

gpicc commented 3 years ago

The channel where the messages are sent (colloquially, the "Best Of channel") won't benefit (reach-wise) from any share, since every message is directly forwarded from another channel and the embedded OP information will prevail over those of the Best Of channel.

Messages should be forwarded as content-only, discarding any embedded OP information, while also automatically adding "da: OP Channel Nick" ("from: OP Channel Nick", in English) at the end of the text body as a link (not a tag) to OP channel.

An example is provided:

Schermata 2020-11-02 alle 17 04 22

The "Basicamente sono scimia" text is the OP's caption. "da: gpicc" would be the correct way of providing information on OP. "Canale temporaneo [...]" represents how the Best Of channel should be displayed.

Midblyte commented 3 years ago

Could a button below the message be an even better alternative?

Maybe I can add a setting, so you can either choose to forward (preserving metadata) or forward "as copy" (this way no metadata, such as the original channel or the message's views, is stored, as you requested)

There's an edge case that is not easy to deal with, in case you want to add an "sent by: " or something like this directly after the text message:

Text-only messages have a 4096 characters limit, while captions 1024. So, if the forwarded message has too much text, the final part of it has to be truncated. Instead, by adding buttons, it's much easier and even nicer to see.

Do you agree?

gpicc commented 3 years ago

I do agree, makes a lot of sense to me. Thank you so much for your hard work!