pyTelegramBotAPI icon indicating copy to clipboard operation
pyTelegramBotAPI copied to clipboard

ChatMemberXXX redesign

Open Badiboy opened this issue 1 year ago • 3 comments

@coder2020official

Looks like we need to redesign ChatMemberXXX family. Currently we have all-in-one ChatMember, but it does not correspond to API.

https://core.telegram.org/bots/api#chatmember

I don't remeber why it is done like this now, I suppose we left it for compatibility...

Badiboy avatar Aug 17 '24 19:08 Badiboy

I'll take a look into it.

I don't remember any backward compatibility choices, though. All I remember is that Swiss was the one to implement it :)

coder2020official avatar Aug 17 '24 19:08 coder2020official

AFAIR some time before there was a single class ChatMember, which was later split into children. Thus we save full ChatMember to leave compatibility.

Badiboy avatar Aug 17 '24 19:08 Badiboy

not really having time rn. Could you do so?

coder2020official avatar Aug 19 '24 14:08 coder2020official