grammyjs / grammY

The Telegram Bot Framework.
https://grammy.dev
MIT License
2.28k stars 112 forks source link

Missing type declaration: `has_hidden_members` is missing in type `ChatFromGetChat`. #533

Closed erenertas closed 5 months ago

erenertas commented 8 months ago
// In .../node_modules/@grammyjs/types/manage.d.ts - Consider line 182
/** This object represents a chat. */
export type Chat = Chat.PrivateChat | Chat.GroupChat | Chat.SupergroupChat | Chat.ChannelChat;
/** This object represents a Telegram user or bot that was returned by `getChat`. */
export type ChatFromGetChat = Chat.PrivateGetChat | Chat.GroupGetChat | Chat.SupergroupGetChat | Chat.ChannelGetChat;
/** This object represent a user's profile pictures. */
export interface UserProfilePhotos {

ChatFromGetChat type should give me the has_hidden_members but couldn't

From Official Telegram API Reference Field Type Description
has_hidden_members True Optional. True, if non-administrators can only get the list of bots and administrators in the chat. Returned only in getChat.
KnorpelSenf commented 5 months ago

Please review #571