Add support for member tags and date_time entities and extend permission flags#61
Add support for member tags and date_time entities and extend permission flags#61Sempai-07 wants to merge 1 commit into
Conversation
There was a problem hiding this comment.
💡 Codex Review
Here are some automated review suggestions for this pull request.
Reviewed commit: 77cac6f2ac
ℹ️ About Codex in GitHub
Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you
- Open a pull request for review
- Mark a draft as ready
- Comment "@codex review".
If Codex has suggestions, it will comment; otherwise it will react with 👍.
Codex can also answer questions or update the PR. Try commenting "@codex address that feedback".
| manageTags: 15, | ||
| manageDirectMessages: 16, |
There was a problem hiding this comment.
Add editTag to user permission flags
ChatMember now reads can_edit_tag, but UserPermissions still does not define editTag in its canonical flag set. Because creator/admin permission snapshots are synthesized from UserPermissions.Flags (for example in ChatMember creator initialization and Chat.memberPermissions(..., checkAdmin=true)), this new right is silently dropped in those flows, so consumers cloning/promoting permissions cannot preserve can_edit_tag.
Useful? React with 👍 / 👎.
Motivation
Description
setChatMemberTagtoBaseClientand the corresponding declaration inMethodsto allow setting a custom tag for a supergroup member via the API (setChatMemberTag).ChatMemberwith atagproperty,setTaginstance method, and equality check to include the tag; updatedMessageto exposesenderTagfor channel/reply senders.date_timemessage entity inMessageEntitieswithdateTimegetter, updated search/iterator types and message entity type lists.manageTagsandeditTag(and adjusted index ordering) inChatPermissions,UserPermissions, andApiPermissionsand updatedtoApiFormatmapping.LanguageCodetostringin runtimeUserand in.d.tsinterfaces to match API behavior..d.tstypings (typings/index.d.ts,typings/telegram/*.d.ts) to reflect all new fields, methods, and types.Testing
Codex Task