botdevelopment | Unsorted

Telegram-канал botdevelopment - Bot Development

1011

Telegram Bot Development. Not Bot Recommendations or Bot Requests or Bot Advertisement or Bot Developer Recruitment. (See @BotList, @BotListChat.) Log: @ou_ch Rules: /rules@oubot

Subscribe to a channel

Bot Development

If you store the warning parameter you can implement remove warnings function trough edits of the original message.
Or basically implement an "undo" function for anything.

Читать полностью…

Bot Development

Add the messages timestamp so you can automatically purge old irrelevant entries.

Читать полностью…

Bot Development

/channel/tdlibchat/134153

Context, if you're curious

Читать полностью…

Bot Development

god knows what "An edited message might not mean an actual edit" could turn into in the future

Читать полностью…

Bot Development

Oh that's already ruled out, but a sudo would do /warn and then a user would react 😭 and be warned again lol, not quite the intended effect. Sudos also often mistype shit tho, so "execute on edit" is still in effect deliberately

Читать полностью…

Bot Development

One of the many reasons I don't allow edits to retrigger commands

Читать полностью…

Bot Development

You mean you don't want to store the content off all incoming messages for 48hrs? Weird /s

Читать полностью…

Bot Development

Then I guess I only found a workaround, if you explicitly subscribe to "message_reaction" in the allowed_updates field, you do not get the edited_message update anymore

Читать полностью…

Bot Development

Such an insane implementation
"An edited message might not mean an actual edit"

Читать полностью…

Bot Development

Anyone a clue how to tell emoji react apart from real message edit? It seems to come through the same way in json (bot api)

Читать полностью…

Bot Development

/channel/tdlibchat/26582
about groups.... the number of 9K can change at any moment... i remember it was 3K when he said that

Читать полностью…

Bot Development

Weird set of rules though

Читать полностью…

Bot Development

On groups bigger than 9000, deleted accounts don't show up anywhere and are also not counted on members count.

And on channels they purge channels from time to time from those deleted accounts. You can see people crying on groups because they 'lost' thousands of subscribers every now and then...

Читать полностью…

Bot Development

As far as i can say not, but you can at some point no longer interact with them ( for example banning them, but you still can get the chatmember info ).

Читать полностью…

Bot Development

There it is:
https://en.wikipedia.org/wiki/Canonical_link_element#HTTP

Читать полностью…

Bot Development

5. Bot Development, not Recommendations or Advertisement or Developer Recruitment. (see @BotList, @BotListChat)

Читать полностью…

Bot Development

All you need to store is a "success flag" on any successfully processed message that lead to a definitive, successful action.
If an admin does /warn "warn message" and this actually triggers a warning, this messages full identifier (group and msg id) should now be blacklisted so an edit will not trigger the action again.
A typo in the command or an invalid argument that didn't lead to a successful action, would be fixable by editing.

Читать полностью…

Bot Development

I found that the admin warning someone and then editing their message to fix a typo and apply a second warning is not typically what the admin they intended to do, hence why I disabled it

Читать полностью…

Bot Development

tho if this workaround would not work the way forward would probably be to block execute on edit

Читать полностью…

Bot Development

First obvious answer is not to process any edits over 2 days old, fwiw

Читать полностью…

Bot Development

If it were up to me I wouldn't process any messages at all but there's no proper group management without :(

Sadly users figured out they could emoji react to sudo commands to retrigger them, silly users

Читать полностью…

Bot Development

Yea no, if the proper way is to keep a list of all messages you recently received I'll stay at the improper way 😁

Читать полностью…

Bot Development

It also might not even be a field that we know about, it could be fully invisible to us

Читать полностью…

Bot Development

You are correct

And no, the official advice seems to be that you should store a hash of all the (relevant) message fields and determine whether they changed based on that

Читать полностью…

Bot Development

The other thing about Telegram purging channels i have no links... You can search for users crying on chats like telegram beta chat or the official groups from time to time

Читать полностью…

Bot Development

Do you have any links I can use as evidence for it?

Читать полностью…

Bot Development

Aha, I knew something was happening somewhere

Читать полностью…

Bot Development

Hmm I could've sworn

Читать полностью…

Bot Development

Does telegram eventually remove deleted accounts from the members list?

I could swear there was a post about it at some point but can't find the link

Читать полностью…

Bot Development

I feel like this is more a failure of the underlying tech stack than anything else. Html has canonical URLs. There should be an http-equivalent

Читать полностью…
Subscribe to a channel