/// export default class BotsTelegramMessageModel extends Model { static schema: { telegramUserId: { type: typeof import("mongoose").Schema.Types.ObjectId; ref: string; }; botId: { type: string; }; type: { type: string; }; /** INTERFACE ServiceMessage */ /** Unique message identifier inside this chat */ message_id: { type: NumberConstructor; }; /** Sender, empty for messages sent to channels */ from: { type: ObjectConstructor; }; /** Date the message was sent in Unix time */ date: { type: NumberConstructor; }; /** Conversation the message belongs to */ chat: { type: ObjectConstructor; }; /** ------------------------------ */ /** INTERFACE CommonMessage extends ServiceMessage */ /** For forwarded messages, sender of the original message */ forward_from: { type: ObjectConstructor; }; /** For messages forwarded from channels, information about the original channel */ forward_from_chat: { type: ObjectConstructor; }; /** For messages forwarded from channels, identifier of the original message in the channel */ forward_from_message_id: { type: NumberConstructor; }; /** For messages forwarded from channels, signature of the post author if present */ forward_signature: { type: StringConstructor; }; /** Sender's name for messages forwarded from users who disallow adding a link to their account in forwarded messages */ forward_sender_name: { type: StringConstructor; }; /** For forwarded messages, date the original message was sent in Unix time */ forward_date: { type: NumberConstructor; }; /** For replies, the original message. Note that the Message object in this field will not contain further reply_to_message fields even if it itself is a reply. */ reply_to_message: { type: ObjectConstructor; }; /** Bot through which the message was sent */ via_bot: { type: ObjectConstructor; }; /** Date the message was last edited in Unix time */ edit_date: { type: NumberConstructor; }; /** Signature of the post author for messages in channels */ author_signature: { type: StringConstructor; }; /** Inline keyboard attached to the message. login_url buttons are represented as ordinary url buttons. */ reply_markup: { type: ObjectConstructor; }; /** ------------------------------ */ /** INTERFACE TextMessage extends CommonMessage */ /** For text messages, the actual UTF-8 text of the message, 0-4096 characters */ text: { type: StringConstructor; }; /** For text messages, special entities like usernames, URLs, bot commands, etc. that appear in the text */ entities: { type: ObjectConstructor; }; /** ------------------------------ */ /** INTERFACE CaptionableMessage extends CommonMessage */ /** Caption for the animation, audio, document, photo, video or voice, 0-1024 characters */ caption: { type: StringConstructor; }; /** For messages with a caption, special entities like usernames, URLs, bot commands, etc. that appear in the caption */ caption_entities: { type: ObjectConstructor; }; /** ------------------------------ */ /** INTERFACE MediaMessage extends CaptionableMessage */ /** The unique identifier of a media message group this message belongs to */ media_group_id: { type: StringConstructor; }; /** ------------------------------ */ /** INTERFACE AudioMessage extends CaptionableMessage */ /** Message is an audio file, information about the file */ audio: { type: ObjectConstructor; }; /** ------------------------------ */ /** INTERFACE DocumentMessage extends CaptionableMessage */ /** Message is a general file, information about the file */ document: { type: ObjectConstructor; }; /** ------------------------------ */ /** INTERFACE AnimationMessage extends DocumentMessage */ /** Message is an animation, information about the animation. For backward compatibility, when this field is set, the document field will also be set */ animation: { type: ObjectConstructor; }; /** ------------------------------ */ /** INTERFACE PhotoMessage extends MediaMessage */ /** Message is a photo, available sizes of the photo */ photo: { type: ObjectConstructor; }; /** } */ /** INTERFACE StickerMessage extends CommonMessage */ /** Message is a sticker, information about the sticker */ sticker: { type: ObjectConstructor; }; /** ------------------------------ */ /** INTERFACE VideoMessage extends MediaMessage */ /** Message is a video, information about the video */ video: { type: ObjectConstructor; }; /** ------------------------------ */ /** INTERFACE VideoNoteMessage extends CommonMessage */ /** Message is a video note, information about the video message */ video_note: { type: ObjectConstructor; }; /** ------------------------------ */ /** INTERFACE VoiceMessage extends CaptionableMessage */ /** Message is a voice message, information about the file */ voice: { type: ObjectConstructor; }; /** ------------------------------ */ /** INTERFACE ContactMessage extends CommonMessage */ /** Message is a shared contact, information about the contact */ contact: { type: ObjectConstructor; }; /** ------------------------------ */ /** INTERFACE DiceMessage extends CommonMessage */ /** Message is a dice with random value from 1 to 6 */ dice: { type: ObjectConstructor; }; /** ------------------------------ */ /** INTERFACE GameMessage extends CommonMessage */ /** Message is a game, information about the game. More about games » */ game: { type: ObjectConstructor; }; /** ------------------------------ */ /** INTERFACE PollMessage extends CommonMessage */ /** Message is a native poll, information about the poll */ poll: { type: ObjectConstructor; }; /** ------------------------------ */ /** INTERFACE LocationMessage extends CommonMessage */ /** Message is a shared location, information about the location */ location: { type: ObjectConstructor; }; /** ------------------------------ */ /** INTERFACE VenueMessage extends LocationMessage */ /** Message is a venue, information about the venue. For backward compatibility, when this field is set, the location field will also be set */ venue: { type: ObjectConstructor; }; /** ------------------------------ */ /** INTERFACE NewChatMembersMessage extends ServiceMessage */ /** New members that were added to the group or supergroup and information about them (the bot itself may be one of these members) */ new_chat_members: { type: ObjectConstructor; }; /** ------------------------------ */ /** INTERFACE LeftChatMemberMessage extends ServiceMessage */ /** A member was removed from the group, information about them (this member may be the bot itself) */ left_chat_member: { type: ObjectConstructor; }; /** ------------------------------ */ /** INTERFACE NewChatTitleMessage extends ServiceMessage */ /** A chat title was changed to this value */ new_chat_title: { type: StringConstructor; }; /** ------------------------------ */ /** INTERFACE NewChatPhotoMessage extends ServiceMessage */ /** A chat photo was change to this value */ new_chat_photo: { type: ObjectConstructor; }; /** ------------------------------ */ /** INTERFACE DeleteChatPhotoMessage extends ServiceMessage */ /** Service message: the chat photo was deleted */ delete_chat_photo: { type: BooleanConstructor; }; /** ------------------------------ */ /** INTERFACE GroupChatCreatedMessage extends ServiceMessage */ /** Service message: the group has been created */ group_chat_created: { type: BooleanConstructor; }; /** ------------------------------ */ /** INTERFACE SupergroupChatCreated extends ServiceMessage */ /** Service message: the supergroup has been created. This field can't be received in a message coming through updates, because bot can't be a member of a supergroup when it is created. It can only be found in reply_to_message if someone replies to a very first message in a directly created supergroup. */ supergroup_chat_created: { type: BooleanConstructor; }; /** ------------------------------ */ /** INTERFACE ChannelChatCreatedMessage extends ServiceMessage */ /** Service message: the channel has been created. This field can't be received in a message coming through updates, because bot can't be a member of a channel when it is created. It can only be found in reply_to_message if someone replies to a very first message in a channel. */ channel_chat_created: { type: BooleanConstructor; }; /** ------------------------------ */ /** INTERFACE MigrateToChatIdMessage extends ServiceMessage */ /** The group has been migrated to a supergroup with the specified identifier. This number may be greater than 32 bits and some programming languages may have difficulty/silent defects in interpreting it. But it is smaller than 52 bits, so a signed 64 bit integer or double-precision float type are safe for storing this identifier. */ migrate_to_chat_id: { type: NumberConstructor; }; /** ------------------------------ */ /** INTERFACE MigrateFromChatIdMessage extends ServiceMessage */ /** The supergroup has been migrated from a group with the specified identifier. This number may be greater than 32 bits and some programming languages may have difficulty/silent defects in interpreting it. But it is smaller than 52 bits, so a signed 64 bit integer or double-precision float type are safe for storing this identifier. */ migrate_from_chat_id: { type: NumberConstructor; }; /** ------------------------------ */ /** INTERFACE PinnedMessageMessage extends ServiceMessage */ /** Specified message was pinned. Note that the Message object in this field will not contain further reply_to_message fields even if it is itself a reply. */ /** ------------------------------ */ /** INTERFACE InvoiceMessage extends ServiceMessage */ /** Message is an invoice for a payment, information about the invoice. More about payments » */ invoice: { type: ObjectConstructor; }; /** ------------------------------ */ /** INTERFACE SuccessfulPaymentMessage extends ServiceMessage */ /** Message is a service message about a successful payment, information about the payment. More about payments » */ successful_payment: { type: ObjectConstructor; }; /** ------------------------------ */ /** INTERFACE ConnectedWebsiteMessage extends ServiceMessage */ /** The domain name of the website on which the user has logged in. More about Telegram Login » */ connected_website: { type: StringConstructor; }; /** ------------------------------ */ /** INTERFACE PassportDataMessage extends ServiceMessage */ /** Telegram Passport data */ passport_data: { type: ObjectConstructor; }; meta: { type: ObjectConstructor; }; }; static options: { model: string; collection: string; timestamps: boolean; }; } import Model from "@lskjs/db/Model";