We have constants in different locations, e.g.
telegram.constants
- class attributes of
telegram.ParseMode
- class attributes of
telegram.Dice
That should be unified, i.e.:
Moreover, in light of the recent TG update, we should add
Edit: there should be notes on the constants, if they are not documented. And going through the docs to see if there are constants not covered already probably won't hurt …
We have constants in different locations, e.g.
telegram.constantstelegram.ParseModetelegram.DiceThat should be unified, i.e.:
telegram.constants(I guess a regex-search forSCREAMING_SNAIL_CASEshould do the trick …)telegram.constant, (e.g.ParseMode.HTML = constants.PARSE_MODE_HTML)Message.MAX_LENGTH = constants.MAX_MESSAGE_LENGTH)Moreover, in light of the recent TG update, we should add
777000and1087968824, which act as senders for forwarded channel posts and messages from anonymous admins (see here)is_anonymous_adminandis_service_chat(or similar namings) toUserandChatthat compare the user/chat_id to the IDs menotioned aboveEdit: there should be notes on the constants, if they are not documented. And going through the docs to see if there are constants not covered already probably won't hurt …