docs.madelineproto.xyz
Open in
urlscan Pro
2606:50c0:8000::153
Public Scan
URL:
https://docs.madelineproto.xyz/PHP/danog/MadelineProto/EventHandler/AbstractPrivateMessage.html
Submission: On October 05 via api from US — Scanned from DE
Submission: On October 05 via api from US — Scanned from DE
Form analysis
0 forms found in the DOMText Content
Link Search Menu Expand Document ⭐️ 2.8k 🌞 🌚 * ⭐️ on GitHub! * MadelineProto * Creating a client * Login * Features * Requirements * MadelineProto on Docker * Metrics * Installation * Broadcasting messages to all users * Handling updates (new messages & other events) * Filters * Plugins * Database * Settings * Getting info about the current user * Exceptions * Avoiding FLOOD_WAITs * Logging * Telegram VoIP phone calls * Uploading and downloading files * Getting info about chats * Getting all chats (dialogs) * Inline buttons * Secret chats * Using a proxy * Async * FAQ * Upgrading from MadelineProto v7 to v8 * Using methods * Contributing * Web templates for `$MadelineProto->start()` * MadelineProto API * danog\DialogId\DialogId: Represents the type of a bot API dialog ID. * danog\MadelineProto\API: Main API wrapper for MadelineProto. * danog\MadelineProto\AsyncTools: Async tools. * danog\MadelineProto\BotApiFileId: Indicates a bot API file ID to upload using sendDocument, sendPhoto etc... * danog\MadelineProto\Broadcast\Action: Interface that represents a broadcast action. * danog\MadelineProto\Broadcast\Filter: Broadcast filter. * danog\MadelineProto\Broadcast\Progress: Broadcast progress. * danog\MadelineProto\Broadcast\Status: Broadcast status. * danog\MadelineProto\Conversion: * danog\MadelineProto\EventHandler: Event handler. * danog\MadelineProto\EventHandlerIssue: Represents an event handler issue. * danog\MadelineProto\EventHandler\AbstractMessage: Represents an incoming or outgoing message. * danog\MadelineProto\EventHandler\AbstractPoll: Poll * danog\MadelineProto\EventHandler\AbstractPrivateMessage: Represents a private or secret chat message. * danog\MadelineProto\EventHandler\AbstractStory: Represents a Telegram Story. * danog\MadelineProto\EventHandler\Action: In-progress actions. * danog\MadelineProto\EventHandler\Action\Cancel: Invalidate all previous action updates. E.g. when user deletes entered text or aborts a video upload. * danog\MadelineProto\EventHandler\Action\ChooseContact: User is selecting a contact to share. * danog\MadelineProto\EventHandler\Action\ChooseSticker: User is choosing a sticker. * danog\MadelineProto\EventHandler\Action\EmojiSeen: User is watching an animated emoji reaction triggered by another user, [click here for more info »](https://core.telegram.org/api/animated-emojis#emoji-reactions). * danog\MadelineProto\EventHandler\Action\EmojiTap: User has clicked on an animated emoji triggering a [reaction, click here for more info »](https://core.telegram.org/api/animated-emojis#emoji-reactions). * danog\MadelineProto\EventHandler\Action\GamePlay: User is playing a game. * danog\MadelineProto\EventHandler\Action\GeoLocation: User is selecting a location to share. * danog\MadelineProto\EventHandler\Action\GroupCallSpeaking: User is currently speaking in the group call. * danog\MadelineProto\EventHandler\Action\HistoryImport: Chat history is being imported. * danog\MadelineProto\EventHandler\Action\RecordAudio: User is recording a voice message. * danog\MadelineProto\EventHandler\Action\RecordRound: User is recording a round video to share. * danog\MadelineProto\EventHandler\Action\RecordVideo: User is recording a video. * danog\MadelineProto\EventHandler\Action\Typing: User is typing. * danog\MadelineProto\EventHandler\Action\UploadAudio: User is uploading a voice message. * danog\MadelineProto\EventHandler\Action\UploadDocument: User is uploading a file. * danog\MadelineProto\EventHandler\Action\UploadPhoto: User is uploading a photo. * danog\MadelineProto\EventHandler\Action\UploadRound: User is uploading a round video. * danog\MadelineProto\EventHandler\Action\UploadVideo: User is uploading a video. * danog\MadelineProto\EventHandler\Attributes\Cron: Attribute that enables periodic execution of a certain method. * danog\MadelineProto\EventHandler\Attributes\Handler: Attribute that marks a handler method. * danog\MadelineProto\EventHandler\BotApp: Represents information about a [named bot web app](https://core.telegram.org/api/bots/webapps#named-bot-web-apps). * danog\MadelineProto\EventHandler\BotCommands: The [command set](https://core.telegram.org/api/bots/commands) of a certain bot in a certain chat has changed. * danog\MadelineProto\EventHandler\CallbackQuery: Represents a query sent by the user by clicking on a button. * danog\MadelineProto\EventHandler\Channel\ChannelParticipant: A participant has left, joined, was banned or admined in a [channel or supergroup](https://core.telegram.org/api/channel). * danog\MadelineProto\EventHandler\Channel\MessageForwards: Indicates that the forward counter of a message in a channel has changed. * danog\MadelineProto\EventHandler\Channel\MessageViewsChanged: Indicates that the view counter of a message in a channel has changed. * danog\MadelineProto\EventHandler\Channel\UpdateChannel: A new channel is available, or info about an existing channel was changed. * danog\MadelineProto\EventHandler\ChatInvite: Chat invite link that was used by the user to send the [join request »](https://core.telegram.org/api/invites#join-requests). * danog\MadelineProto\EventHandler\ChatInviteRequester: Indicates someone has requested to join a chat or channel. * danog\MadelineProto\EventHandler\ChatInviteRequester\BotChatInviteRequest: Indicates someone has requested to join a chat or channel (bots only). * danog\MadelineProto\EventHandler\ChatInviteRequester\PendingJoinRequests: Someone has requested to join a chat or channel. * danog\MadelineProto\EventHandler\ChatInvite\ChatInviteExported: Represents an exported chat invite. * danog\MadelineProto\EventHandler\ChatInvite\ChatInvitePublicJoin: Used in updates and in the channel log to indicate when a user is requesting to join or has joined a [discussion group](https://core.telegram.org/api/discussion#requiring-users-to-join-the-group). * danog\MadelineProto\EventHandler\Command: Represents a bot command that can be used in a chat. * danog\MadelineProto\EventHandler\CommandType: * danog\MadelineProto\EventHandler\Delete: Indicates that some messages were deleted. * danog\MadelineProto\EventHandler\Delete\DeleteChannelMessages: Some messages in a [supergroup/channel](https://core.telegram.org/api/channel) were deleted. * danog\MadelineProto\EventHandler\Delete\DeleteMessages: Some messages were deleted in a private chat or simple group. * danog\MadelineProto\EventHandler\Delete\DeleteScheduledMessages: Some [scheduled messages](https://core.telegram.org/api/scheduled-messages) were deleted from the schedule queue of a chat. * danog\MadelineProto\EventHandler\Filter\Combinator\FilterNot: NOTs a filter. * danog\MadelineProto\EventHandler\Filter\Combinator\FiltersAnd: ANDs multiple filters. * danog\MadelineProto\EventHandler\Filter\Combinator\FiltersOr: ORs multiple filters. * danog\MadelineProto\EventHandler\Filter\Filter: * danog\MadelineProto\EventHandler\Filter\FilterAllowAll: Allow all updates. * danog\MadelineProto\EventHandler\Filter\FilterButtonQueryData: Filters based on the content of a button query. * danog\MadelineProto\EventHandler\Filter\FilterChannel: Allow only updates coming from channels. * danog\MadelineProto\EventHandler\Filter\FilterCommand: Allow only messages containing the specified command. * danog\MadelineProto\EventHandler\Filter\FilterCommandCaseInsensitive: Allow only messages containing the specified case-insensitive command. * danog\MadelineProto\EventHandler\Filter\FilterCommentReply: Allow messages that coming from @replies. * danog\MadelineProto\EventHandler\Filter\FilterEdited: Allows messages that were edited. * danog\MadelineProto\EventHandler\Filter\FilterEnded: Allow only ended calls. * danog\MadelineProto\EventHandler\Filter\FilterForwarded: Allow only forwarded messages. * danog\MadelineProto\EventHandler\Filter\FilterForwardedFrom: Allow only forwarded messages from a certain sender. * danog\MadelineProto\EventHandler\Filter\FilterFromAdmin: Allow only messages coming from the admin (defined as the peers returned by getReportPeers). * danog\MadelineProto\EventHandler\Filter\FilterFromBot: Allow only messages coming from bots. * danog\MadelineProto\EventHandler\Filter\FilterFromSender: Allow incoming or outgoing group messages made by a certain sender. * danog\MadelineProto\EventHandler\Filter\FilterFromSenders: Allow incoming or outgoing group messages made by a certain list of senders. * danog\MadelineProto\EventHandler\Filter\FilterGroup: Allow only updates coming from groups. * danog\MadelineProto\EventHandler\Filter\FilterIncoming: Allow only incoming messages. * danog\MadelineProto\EventHandler\Filter\FilterMedia: Allow any media messages. * danog\MadelineProto\EventHandler\Filter\FilterMessage: Allow any non-service message. * danog\MadelineProto\EventHandler\Filter\FilterNoMedia: Allow any messages except media messages. * danog\MadelineProto\EventHandler\Filter\FilterNotEdited: Allows messages that weren't edited. * danog\MadelineProto\EventHandler\Filter\FilterOutgoing: Allow only outgoing messages. * danog\MadelineProto\EventHandler\Filter\FilterPeer: Allow messages coming from or sent to a certain peer. * danog\MadelineProto\EventHandler\Filter\FilterPoll: Allow only messages that contain a poll. * danog\MadelineProto\EventHandler\Filter\FilterPrivate: Allow only updates coming from private chats. * danog\MadelineProto\EventHandler\Filter\FilterRegex: Allow only messages or button queries matching the specified regex. * danog\MadelineProto\EventHandler\Filter\FilterRegexMatchAll: Allow only messages or button queries matching the specified regex. * danog\MadelineProto\EventHandler\Filter\FilterReply: Allow messages that reply to other messages. * danog\MadelineProto\EventHandler\Filter\FilterReplyToSelf: Allow messages that reply to one of our messages. * danog\MadelineProto\EventHandler\Filter\FilterRunning: Allow only running calls. * danog\MadelineProto\EventHandler\Filter\FilterSecret: Allow only updates coming from secret chats. * danog\MadelineProto\EventHandler\Filter\FilterSender: Allow incoming or outgoing group messages made by a certain sender. * danog\MadelineProto\EventHandler\Filter\FilterSenders: Allow incoming or outgoing group messages made by a certain list of senders. * danog\MadelineProto\EventHandler\Filter\FilterService: Allow only service messages of any type. * danog\MadelineProto\EventHandler\Filter\FilterText: Allow only messages with a specific content. * danog\MadelineProto\EventHandler\Filter\FilterTextCaseInsensitive: Allow only messages with a specific case-insensitive content. * danog\MadelineProto\EventHandler\Filter\FilterTextContains: Allow only messages that contain a specific content. * danog\MadelineProto\EventHandler\Filter\FilterTextContainsCaseInsensitive: Allow only messages that contain a specific case-insensitive content. * danog\MadelineProto\EventHandler\Filter\FilterTextEnds: Allow only messages that ends with a specific content. * danog\MadelineProto\EventHandler\Filter\FilterTextEndsCaseInsensitive: Allow only messages that ends with a specific case-insensitive content. * danog\MadelineProto\EventHandler\Filter\FilterTextStarts: Allow only messages that start with a specific content. * danog\MadelineProto\EventHandler\Filter\FilterTextStartsCaseInsensitive: Allow only messages that start with a specific case-insensitive content. * danog\MadelineProto\EventHandler\Filter\FilterTopic: Allow only messages coming from groups that has topics (Supergroups only). * danog\MadelineProto\EventHandler\Filter\FilterTopicId: Allow only messages with a specific topic id (Supergroups only). * danog\MadelineProto\EventHandler\Filter\Media\FilterAudio: Allow only audio files. * danog\MadelineProto\EventHandler\Filter\Media\FilterDocument: Allow only documents. * danog\MadelineProto\EventHandler\Filter\Media\FilterDocumentPhoto: Allow only documents containing an image. * danog\MadelineProto\EventHandler\Filter\Media\FilterGif: Allow only GIFs. * danog\MadelineProto\EventHandler\Filter\Media\FilterPhoto: Allow only photos. * danog\MadelineProto\EventHandler\Filter\Media\FilterRoundVideo: Allow only round videos. * danog\MadelineProto\EventHandler\Filter\Media\FilterSticker: Allow only stickers. * danog\MadelineProto\EventHandler\Filter\Media\FilterVideo: Allow only videos. * danog\MadelineProto\EventHandler\Filter\Media\FilterVoice: Allow only voice messages. * danog\MadelineProto\EventHandler\Filter\Poll\FilterMultiplePoll: Allow only messages that contain a multiple poll. * danog\MadelineProto\EventHandler\Filter\Poll\FilterQuizPoll: Allow only messages that contain a quiz poll. * danog\MadelineProto\EventHandler\Filter\Poll\FilterSinglePoll: Allow only messages that contain a single poll. * danog\MadelineProto\EventHandler\ForwardedInfo: Info about a forwarded message. * danog\MadelineProto\EventHandler\InlineQuery: An incoming inline query. * danog\MadelineProto\EventHandler\Keyboard: Represents an inline or reply keyboard. * danog\MadelineProto\EventHandler\Keyboard\InlineKeyboard: Represents an inline keyboard. * danog\MadelineProto\EventHandler\Keyboard\ReplyKeyboard: Represents a reply keyboard. * danog\MadelineProto\EventHandler\Media: Represents a generic media. * danog\MadelineProto\EventHandler\Media\AbstractAudio: Represents a generic audio file. * danog\MadelineProto\EventHandler\Media\AbstractSticker: Represents a generic sticker. * danog\MadelineProto\EventHandler\Media\AbstractVideo: Represents a generic video. * danog\MadelineProto\EventHandler\Media\AnimatedSticker: Represents an animated sticker. * danog\MadelineProto\EventHandler\Media\Audio: Represents an audio file. * danog\MadelineProto\EventHandler\Media\CustomEmoji: Represents a custom emoji sticker. * danog\MadelineProto\EventHandler\Media\Document: Represents a document. * danog\MadelineProto\EventHandler\Media\DocumentPhoto: Represents a photo uploaded as a document. * danog\MadelineProto\EventHandler\Media\GeoPoint: * danog\MadelineProto\EventHandler\Media\Gif: Represents a GIF (or an MPEG4 file without sound). * danog\MadelineProto\EventHandler\Media\MaskPosition: Position of the mask * danog\MadelineProto\EventHandler\Media\MaskSticker: Represents a mask sticker. * danog\MadelineProto\EventHandler\Media\MediaStory: Represents a forwarded story. * danog\MadelineProto\EventHandler\Media\Photo: Represents a photo. * danog\MadelineProto\EventHandler\Media\RoundVideo: Represents a round video. * danog\MadelineProto\EventHandler\Media\StaticSticker: Represents a static sticker. * danog\MadelineProto\EventHandler\Media\Sticker: Represents a sticker. * danog\MadelineProto\EventHandler\Media\Video: Represents a video. * danog\MadelineProto\EventHandler\Media\VideoSticker: Represents a video sticker. * danog\MadelineProto\EventHandler\Media\Voice: Represents a voice message. * danog\MadelineProto\EventHandler\Message: Represents an incoming or outgoing message. * danog\MadelineProto\EventHandler\Message\ChannelMessage: Represents an incoming or outgoing channel message. * danog\MadelineProto\EventHandler\Message\CommentReply: Represents a reply to one of our messages in a channel comment group that we're not a member of (i.e. received via `@replies`). * danog\MadelineProto\EventHandler\Message\Entities\BankCard: Indicates a credit card number. * danog\MadelineProto\EventHandler\Message\Entities\Blockquote: Message entity representing a block quote. * danog\MadelineProto\EventHandler\Message\Entities\Bold: Message entity representing bold text. * danog\MadelineProto\EventHandler\Message\Entities\BotCommand: Message entity representing a bot /command. * danog\MadelineProto\EventHandler\Message\Entities\Cashtag: Message entity representing a $cashtag. * danog\MadelineProto\EventHandler\Message\Entities\Code: Message entity representing a codeblock. * danog\MadelineProto\EventHandler\Message\Entities\CustomEmoji: Represents a custom emoji. * danog\MadelineProto\EventHandler\Message\Entities\Email: Message entity representing an email@example.com. * danog\MadelineProto\EventHandler\Message\Entities\Hashtag: #hashtag message entity. * danog\MadelineProto\EventHandler\Message\Entities\InputMentionName: Message entity representing a [user mention](https://core.telegram.org/api/mentions) created by the user, not returned by the API. * danog\MadelineProto\EventHandler\Message\Entities\Italic: Message entity representing italic text. * danog\MadelineProto\EventHandler\Message\Entities\Mention: Message entity mentioning the current user. * danog\MadelineProto\EventHandler\Message\Entities\MentionName: Message entity representing a [user mention](https://core.telegram.org/api/mentions). * danog\MadelineProto\EventHandler\Message\Entities\MessageEntity: Master class for message entities. * danog\MadelineProto\EventHandler\Message\Entities\Phone: Message entity representing a phone number. * danog\MadelineProto\EventHandler\Message\Entities\Pre: Message entity representing a preformatted codeblock, allowing the user to specify a programming language for the codeblock. * danog\MadelineProto\EventHandler\Message\Entities\Spoiler: Message entity representing a spoiler. * danog\MadelineProto\EventHandler\Message\Entities\Strike: Message entity representing strikethrough text. * danog\MadelineProto\EventHandler\Message\Entities\TextUrl: Message entity representing a text url: for in-text urls like https://google.com use Url. * danog\MadelineProto\EventHandler\Message\Entities\Underline: Message entity representing underlined text. * danog\MadelineProto\EventHandler\Message\Entities\Url: Message entity representing an in-text url: https://google.com; for text urls, use TextUrl. * danog\MadelineProto\EventHandler\Message\GroupMessage: Represents an incoming or outgoing group message. * danog\MadelineProto\EventHandler\Message\PrivateMessage: Represents an incoming or outgoing private message. * danog\MadelineProto\EventHandler\Message\ReportReason: * danog\MadelineProto\EventHandler\Message\SecretMessage: Represents New encrypted message. * danog\MadelineProto\EventHandler\Message\ServiceMessage: Represents info about a service message. * danog\MadelineProto\EventHandler\Message\Service\DialogBotAllowed: We have given the bot permission to send us direct messages. * danog\MadelineProto\EventHandler\Message\Service\DialogChannelCreated: The channel was created. * danog\MadelineProto\EventHandler\Message\Service\DialogChannelMigrateFrom: Indicates the channel was [migrated](https://core.telegram.org/api/channel) from the specified chat. * danog\MadelineProto\EventHandler\Message\Service\DialogChatJoinedByLink: A user joined the chat via an invite link. * danog\MadelineProto\EventHandler\Message\Service\DialogChatMigrateTo: Indicates the chat was [migrated](https://core.telegram.org/api/channel) to the specified supergroup. * danog\MadelineProto\EventHandler\Message\Service\DialogContactSignUp: A contact just signed up to telegram. * danog\MadelineProto\EventHandler\Message\Service\DialogCreated: A chat or channel was created. * danog\MadelineProto\EventHandler\Message\Service\DialogDeleteMessages: Deleted messages. * danog\MadelineProto\EventHandler\Message\Service\DialogGameScore: Someone scored in a game. * danog\MadelineProto\EventHandler\Message\Service\DialogGeoProximityReached: A user of the chat is now in proximity of another user. * danog\MadelineProto\EventHandler\Message\Service\DialogGiftPremium: Info about a gifted Telegram Premium subscription. * danog\MadelineProto\EventHandler\Message\Service\DialogGroupCall: Represents a service message about a group call. * danog\MadelineProto\EventHandler\Message\Service\DialogGroupCall\GroupCall: The group call has started or ended. * danog\MadelineProto\EventHandler\Message\Service\DialogGroupCall\GroupCallInvited: A set of users was invited to the group call. * danog\MadelineProto\EventHandler\Message\Service\DialogGroupCall\GroupCallScheduled: A group call was scheduled. * danog\MadelineProto\EventHandler\Message\Service\DialogHistoryCleared: Chat history was cleared. * danog\MadelineProto\EventHandler\Message\Service\DialogMemberJoinedByRequest: A user was accepted into the group by an admin. * danog\MadelineProto\EventHandler\Message\Service\DialogMemberLeft: A member left the chat or channel. * danog\MadelineProto\EventHandler\Message\Service\DialogMembersJoined: Some members joined the chat or channel. * danog\MadelineProto\EventHandler\Message\Service\DialogMessagePinned: A message was pinned in a chat. * danog\MadelineProto\EventHandler\Message\Service\DialogPeerRequested: Contains info about a peer that the user shared with the bot after clicking on a [keyboardButtonRequestPeer](https://docs.madelineproto.xyz/API_docs/constructors/keyboardButtonRequestPeer.html) button. * danog\MadelineProto\EventHandler\Message\Service\DialogPhoneCall: A phone call. * danog\MadelineProto\EventHandler\Message\Service\DialogPhotoChanged: The photo of the dialog was changed or deleted. * danog\MadelineProto\EventHandler\Message\Service\DialogReadMessages: Messages marked as read. * danog\MadelineProto\EventHandler\Message\Service\DialogScreenshotTaken: A screenshot of the chat was taken. * danog\MadelineProto\EventHandler\Message\Service\DialogSetChatTheme: The chat theme was changed. * danog\MadelineProto\EventHandler\Message\Service\DialogSetChatWallPaper: The [wallpaper](https://core.telegram.org/api/wallpapers) of the current chat was changed. * danog\MadelineProto\EventHandler\Message\Service\DialogSetTTL: The Time-To-Live of messages in this chat was changed. * danog\MadelineProto\EventHandler\Message\Service\DialogSuggestProfilePhoto: A new profile picture was suggested using [photos.uploadContactProfilePhoto](https://docs.madelineproto.xyz/API_docs/methods/photos.uploadContactProfilePhoto.html). * danog\MadelineProto\EventHandler\Message\Service\DialogTitleChanged: The title of a channel or group has changed. * danog\MadelineProto\EventHandler\Message\Service\DialogTopicCreated: A [forum topic](https://core.telegram.org/api/forum#forum-topics) was created. * danog\MadelineProto\EventHandler\Message\Service\DialogTopicEdited: [Forum topic](https://core.telegram.org/api/forum#forum-topics) information was edited. * danog\MadelineProto\EventHandler\Message\Service\DialogWebView: Data from an opened [reply keyboard bot web app](https://core.telegram.org/api/bots/webapps) was relayed to the bot that owns it (user & bot side service message). * danog\MadelineProto\EventHandler\Participant: Info about a channel participant. * danog\MadelineProto\EventHandler\Participant\Admin: Admin. * danog\MadelineProto\EventHandler\Participant\Banned: Banned/kicked user. * danog\MadelineProto\EventHandler\Participant\Creator: Channel/supergroup creator. * danog\MadelineProto\EventHandler\Participant\Left: A participant that left the channel/supergroup. * danog\MadelineProto\EventHandler\Participant\Member: Channel/supergroup participant. * danog\MadelineProto\EventHandler\Participant\MySelf: Myself. * danog\MadelineProto\EventHandler\Participant\Rights: * danog\MadelineProto\EventHandler\Participant\Rights\Admin: Represents the rights of an admin in a [channel/supergroup](https://core.telegram.org/api/channel). * danog\MadelineProto\EventHandler\Participant\Rights\Banned: Represents the rights of a normal user in a [supergroup/channel/chat](https://core.telegram.org/api/channel). In this case, the flags are inverted: if set, a flag does not allow a user to do X. * danog\MadelineProto\EventHandler\Pinned: Indicates that some messages were pinned/unpinned. * danog\MadelineProto\EventHandler\Pinned\PinnedChannelMessages: Represents messages that were pinned/unpinned in a [channel](https://core.telegram.org/api/channel). * danog\MadelineProto\EventHandler\Pinned\PinnedGroupMessages: Represents messages that were pinned/unpinned in a [chat/supergroup](https://core.telegram.org/api/channel). * danog\MadelineProto\EventHandler\Pinned\PinnedPrivateMessages: Some messages were pinned in a private chat. * danog\MadelineProto\EventHandler\Plugin\RestartPlugin: Plugin that offers a /restart command to admins that can be used to restart the bot, applying changes. * danog\MadelineProto\EventHandler\Poll\MultiplePoll: Represents a poll with multiple options can be chosen as answer * danog\MadelineProto\EventHandler\Poll\PollAnswer: Represents a possible answer of a poll * danog\MadelineProto\EventHandler\Poll\QuizPoll: Represents a quiz (with wrong and correct answers, results shown in the return type) poll * danog\MadelineProto\EventHandler\Poll\SinglePoll: Represents a poll with a option can be chosen as answer * danog\MadelineProto\EventHandler\Privacy: Indicates some privacy rules for a user or set of users. * danog\MadelineProto\EventHandler\Privacy\Rule: Represents a privacy rule. * danog\MadelineProto\EventHandler\Privacy\RuleDestination: To whom does a privacy rule apply? * danog\MadelineProto\EventHandler\Privacy\RuleDestination\AllowAll: Allow all users. * danog\MadelineProto\EventHandler\Privacy\RuleDestination\AllowChatParticipants: Allow all participants of certain chats. * danog\MadelineProto\EventHandler\Privacy\RuleDestination\AllowCloseFriends: * danog\MadelineProto\EventHandler\Privacy\RuleDestination\AllowContacts: Allow all contacts. * danog\MadelineProto\EventHandler\Privacy\RuleDestination\AllowUsers: Allow only certain user. * danog\MadelineProto\EventHandler\Privacy\RuleDestination\DisallowAll: Disallow all users. * danog\MadelineProto\EventHandler\Privacy\RuleDestination\DisallowChatParticipants: Disallow only participants of certain chats. * danog\MadelineProto\EventHandler\Privacy\RuleDestination\DisallowContacts: Disallow only contacts. * danog\MadelineProto\EventHandler\Privacy\RuleDestination\DisallowUsers: Disallow only certain users. * danog\MadelineProto\EventHandler\Query\ButtonQuery: Represents a query sent by the user by clicking on a button. * danog\MadelineProto\EventHandler\Query\ChatButtonQuery: Represents a query sent by the user by clicking on a button in a chat. * danog\MadelineProto\EventHandler\Query\ChatGameQuery: Represents a query sent by the user by clicking on a "Play game" button in a chat. * danog\MadelineProto\EventHandler\Query\GameQuery: Represents a query sent by the user by clicking on a "Play game" button. * danog\MadelineProto\EventHandler\Query\InlineButtonQuery: Represents a query sent by the user by clicking on a button in an inline message. * danog\MadelineProto\EventHandler\Query\InlineGameQuery: Represents a query sent by the user by clicking on a "Play game" button in an inline message. * danog\MadelineProto\EventHandler\SimpleFilter\Ended: Represents an ended call * danog\MadelineProto\EventHandler\SimpleFilter\FromAdmin: Allows messages from the bot admin * danog\MadelineProto\EventHandler\SimpleFilter\FromAdminOrOutgoing: Allows messages from the bot admin or outgoing messages * danog\MadelineProto\EventHandler\SimpleFilter\HasAudio: Allows only audio messages * danog\MadelineProto\EventHandler\SimpleFilter\HasDocument: Allows only documents * danog\MadelineProto\EventHandler\SimpleFilter\HasDocumentPhoto: Allows only document photos * danog\MadelineProto\EventHandler\SimpleFilter\HasGif: Allows only GIFs * danog\MadelineProto\EventHandler\SimpleFilter\HasMedia: Allows only media messages * danog\MadelineProto\EventHandler\SimpleFilter\HasMultiplePoll: Allows only messages that contain a multiple poll * danog\MadelineProto\EventHandler\SimpleFilter\HasNoMedia: Allows only messages with no media * danog\MadelineProto\EventHandler\SimpleFilter\HasPhoto: Allows only photos * danog\MadelineProto\EventHandler\SimpleFilter\HasPoll: Allows only messages that contain a poll * danog\MadelineProto\EventHandler\SimpleFilter\HasQuizPoll: Allows only messages that contain a quiz poll * danog\MadelineProto\EventHandler\SimpleFilter\HasRoundVideo: Allows only round videos * danog\MadelineProto\EventHandler\SimpleFilter\HasSinglePoll: Allows only messages that contain a single poll * danog\MadelineProto\EventHandler\SimpleFilter\HasSticker: Allows only stickers * danog\MadelineProto\EventHandler\SimpleFilter\HasTopic: Allow only messages coming from groups that has topics (Supergroups only). * danog\MadelineProto\EventHandler\SimpleFilter\HasVideo: Allows only videos * danog\MadelineProto\EventHandler\SimpleFilter\HasVoice: Allows only voice messages * danog\MadelineProto\EventHandler\SimpleFilter\Incoming: Represents an incoming message * danog\MadelineProto\EventHandler\SimpleFilter\IsEdited: Allows messages that were edited. * danog\MadelineProto\EventHandler\SimpleFilter\IsForwarded: Allows only forwarded messages * danog\MadelineProto\EventHandler\SimpleFilter\IsNotEdited: Allows messages that weren't edited. * danog\MadelineProto\EventHandler\SimpleFilter\IsReply: Allows only messages that reply to other messages * danog\MadelineProto\EventHandler\SimpleFilter\IsReplyToSelf: Allows only messages that reply to one of our messages * danog\MadelineProto\EventHandler\SimpleFilter\Outgoing: Represents an outgoing message * danog\MadelineProto\EventHandler\SimpleFilter\Running: Allow only currently running calls * danog\MadelineProto\EventHandler\Story\Story: Represents a Telegram story. * danog\MadelineProto\EventHandler\Story\StoryDeleted: Represents a deleted story. * danog\MadelineProto\EventHandler\Story\StoryReaction: Represents a reaction to a story. * danog\MadelineProto\EventHandler\Topic\IconColor: Specifies the color of the fallback topic icon (RGB) if no custom emoji icon is specified. * danog\MadelineProto\EventHandler\Typing: A user is typing. * danog\MadelineProto\EventHandler\Typing\ChatUserTyping: The user is preparing a message in a group; typing, recording, uploading, etc. This update is valid for 6 seconds. If no further updates of this kind are received after 6 seconds, it should be considered that the user stopped doing whatever they were doing. * danog\MadelineProto\EventHandler\Typing\SecretUserTyping: The user is preparing a message in a secret chat; typing, recording, uploading, etc. This update is valid for 6 seconds. If no further updates of this kind are received after 6 seconds, it should be considered that the user stopped doing whatever they were doing. * danog\MadelineProto\EventHandler\Typing\SupergroupUserTyping: A user is typing in a [supergroup](https://core.telegram.org/api/channel). * danog\MadelineProto\EventHandler\Typing\UserTyping: The user is preparing a message; typing, recording, uploading, etc. This update is valid for 6 seconds. If no further updates of this kind are received after 6 seconds, it should be considered that the user stopped doing whatever they were doing. * danog\MadelineProto\EventHandler\Update: Represents a generic update. * danog\MadelineProto\EventHandler\User\Blocked: A peer was blocked. * danog\MadelineProto\EventHandler\User\BotStopped: A bot was stopped or re-started. * danog\MadelineProto\EventHandler\User\Phone: A user’s phone number was changed. * danog\MadelineProto\EventHandler\User\Status: Contains a status update. * danog\MadelineProto\EventHandler\User\Status\Emoji: The [emoji status](https://core.telegram.org/api/emoji-status) of a certain user has changed or was removed. * danog\MadelineProto\EventHandler\User\Status\EmptyStatus: User status has not been set yet. * danog\MadelineProto\EventHandler\User\Status\LastMonth: Online status: last seen last month. * danog\MadelineProto\EventHandler\User\Status\LastWeek: Online status: last seen last week. * danog\MadelineProto\EventHandler\User\Status\Offline: The user’s offline status. * danog\MadelineProto\EventHandler\User\Status\Online: Online status of the user. * danog\MadelineProto\EventHandler\User\Status\Recently: Online status: last seen recently. * danog\MadelineProto\EventHandler\User\Username: Changes were made to the user’s first name, last name or username. * danog\MadelineProto\EventHandler\User\UsernameInfo: Represents an username. * danog\MadelineProto\EventHandler\Wallpaper: Represents a [wallpaper](https://core.telegram.org/api/wallpapers). * danog\MadelineProto\EventHandler\Wallpaper\WallpaperSettings: Info on how to generate a wallpaper, according to [these instructions »](https://core.telegram.org/api/wallpapers). * danog\MadelineProto\Exception: Basic exception. * danog\MadelineProto\FileCallback: File callback interface. * danog\MadelineProto\FileCallbackInterface: File callback interface. * danog\MadelineProto\LocalFile: Indicates a local file to upload. * danog\MadelineProto\Logger: Logger class. * danog\MadelineProto\MyTelegramOrgWrapper: Wrapper for my.telegram.org. * danog\MadelineProto\Ogg: Async OGG stream reader and writer. * danog\MadelineProto\OggWriter: Async OGG stream writer. * danog\MadelineProto\PTSException: Internal error indicating a problem with Telegram's servers. * danog\MadelineProto\ParseMode: Indicates a parsing mode for text. * danog\MadelineProto\PeerNotInDbException: Indicates that a specified peer (user, chat, channel) was not found in the internal MadelineProto peer database. * danog\MadelineProto\PluginEventHandler: Plugin event handler class. * danog\MadelineProto\PsrLogger: PSR-3 wrapper for MadelineProto's Logger. * danog\MadelineProto\RPCErrorException: Indicates an error returned by Telegram's API. * danog\MadelineProto\RPCError\BotGamesDisabledError: Games can't be sent to channels. * danog\MadelineProto\RPCError\BotPaymentsDisabledError: Please enable bot payments in botfather before calling this method. * danog\MadelineProto\RPCError\BroadcastPublicVotersForbiddenError: You can't forward polls with public voters. * danog\MadelineProto\RPCError\ButtonUserPrivacyRestrictedError: The privacy setting of the user specified in a [inputKeyboardButtonUserProfile](https://core.telegram.org/constructor/inputKeyboardButtonUserProfile) button do not allow creating such a button. * danog\MadelineProto\RPCError\CallAlreadyAcceptedError: The call was already accepted. * danog\MadelineProto\RPCError\CallAlreadyDeclinedError: The call was already declined. * danog\MadelineProto\RPCError\ChannelInvalidError: The provided channel is invalid. * danog\MadelineProto\RPCError\ChannelPrivateError: You haven't joined this channel/supergroup. * danog\MadelineProto\RPCError\ChatAdminRequiredError: You must be an admin in this chat to do this. * danog\MadelineProto\RPCError\ChatForbiddenError: This chat is not available to the current user. * danog\MadelineProto\RPCError\ChatForwardsRestrictedError: You can't forward messages from a protected chat. * danog\MadelineProto\RPCError\ChatGuestSendForbiddenError: You join the discussion group before commenting, see [here »](https://core.telegram.org/api/discussion#requiring-users-to-join-the-group) for more info. * danog\MadelineProto\RPCError\ChatRestrictedError: You can't send messages in this chat, you were restricted. * danog\MadelineProto\RPCError\ChatSendAudiosForbiddenError: You can't send audio messages in this chat. * danog\MadelineProto\RPCError\ChatSendDocsForbiddenError: You can't send documents in this chat. * danog\MadelineProto\RPCError\ChatSendGifsForbiddenError: You can't send gifs in this chat. * danog\MadelineProto\RPCError\ChatSendMediaForbiddenError: You can't send media in this chat. * danog\MadelineProto\RPCError\ChatSendPhotosForbiddenError: You can't send photos in this chat. * danog\MadelineProto\RPCError\ChatSendPlainForbiddenError: You can't send non-media (text) messages in this chat. * danog\MadelineProto\RPCError\ChatSendPollForbiddenError: You can't send polls in this chat. * danog\MadelineProto\RPCError\ChatSendRoundvideosForbiddenError: You can't send round videos to this chat. * danog\MadelineProto\RPCError\ChatSendStickersForbiddenError: You can't send stickers in this chat. * danog\MadelineProto\RPCError\ChatSendVideosForbiddenError: You can't send videos in this chat. * danog\MadelineProto\RPCError\ChatSendVoicesForbiddenError: You can't send voice recordings in this chat. * danog\MadelineProto\RPCError\ChatWriteForbiddenError: You can't write in this chat. * danog\MadelineProto\RPCError\DcIdInvalidError: The provided DC ID is invalid. * danog\MadelineProto\RPCError\EncryptionAlreadyAcceptedError: Secret chat already accepted. * danog\MadelineProto\RPCError\EncryptionAlreadyDeclinedError: The secret chat was already declined. * danog\MadelineProto\RPCError\EncryptionDeclinedError: The secret chat was declined. * danog\MadelineProto\RPCError\FileReferenceExpiredError: File reference expired, it must be refetched as described in [the documentation](https://core.telegram.org/api/file_reference). * danog\MadelineProto\RPCError\FileTokenInvalidError: The master DC did not accept the `file_token` (e.g., the token has expired). Continue downloading the file from the master DC using upload.getFile. * danog\MadelineProto\RPCError\FloodPremiumWaitError: Represents a FLOOD_PREMIUM_WAIT_ RPC error returned by telegram. * danog\MadelineProto\RPCError\FloodWaitError: Represents a FLOOD_WAIT_ RPC error returned by telegram. * danog\MadelineProto\RPCError\FromMessageBotDisabledError: Bots can't use fromMessage min constructors. * danog\MadelineProto\RPCError\ImageProcessFailedError: Failure while processing image. * danog\MadelineProto\RPCError\InputUserDeactivatedError: The specified user was deleted. * danog\MadelineProto\RPCError\MsgIdInvalidError: Invalid message ID provided. * danog\MadelineProto\RPCError\PasswordHashInvalidError: The provided password hash is invalid. * danog\MadelineProto\RPCError\PaymentUnsupportedError: A detailed description of the error will be received separately as described [here »](https://core.telegram.org/api/errors#406-not-acceptable). * danog\MadelineProto\RPCError\PeerIdInvalidError: The provided peer id is invalid. * danog\MadelineProto\RPCError\PinnedDialogsTooMuchError: Too many pinned dialogs. * danog\MadelineProto\RPCError\PollOptionDuplicateError: Duplicate poll options provided. * danog\MadelineProto\RPCError\PremiumAccountRequiredError: A premium account is required to execute this action. * danog\MadelineProto\RPCError\PrivacyPremiumRequiredError: You need a [Telegram Premium subscription](https://core.telegram.org/api/premium) to send a message to this user. * danog\MadelineProto\RPCError\QuickRepliesTooMuchError: A maximum of [appConfig.`quick_replies_limit`](https://core.telegram.org/api/config#quick-replies-limit) shortcuts may be created, the limit was reached. * danog\MadelineProto\RPCError\QuizCorrectAnswersTooMuchError: You specified too many correct answers in a quiz, quizzes can only have one right answer! * danog\MadelineProto\RPCError\RateLimitError: Represents a rate limiting RPC error returned by telegram. * danog\MadelineProto\RPCError\ReplyMessagesTooMuchError: Each shortcut can contain a maximum of [appConfig.`quick_reply_messages_limit`](https://core.telegram.org/api/config#quick-reply-messages-limit) messages, the limit was reached. * danog\MadelineProto\RPCError\RequestTokenInvalidError: The master DC did not accept the `request_token` from the CDN DC. Continue downloading the file from the master DC using upload.getFile. * danog\MadelineProto\RPCError\ScheduleBotNotAllowedError: Bots cannot schedule messages. * danog\MadelineProto\RPCError\ScheduleDateTooLateError: You can't schedule a message this far in the future. * danog\MadelineProto\RPCError\ScheduleStatusPrivateError: Can't schedule until user is online, if the user's last seen timestamp is hidden by their privacy settings. * danog\MadelineProto\RPCError\ScheduleTooMuchError: There are too many scheduled messages. * danog\MadelineProto\RPCError\SessionPasswordNeededError: 2FA is enabled, use a password to login. * danog\MadelineProto\RPCError\TimeoutError: Represents a request timeout RPC error returned by telegram (as opposed to one returned by MadelineProto, which will be a {@see TimeoutException}). * danog\MadelineProto\RPCError\TopicClosedError: This topic was closed, you can't send messages to it anymore. * danog\MadelineProto\RPCError\TopicDeletedError: The specified topic was deleted. * danog\MadelineProto\RPCError\UserBannedInChannelError: You're banned from sending messages in supergroups/channels. * danog\MadelineProto\RPCError\UserIsBlockedError: You were blocked by this user. * danog\MadelineProto\RPCError\UserIsBotError: Bots can't send messages to other bots. * danog\MadelineProto\RPCError\UsernameInvalidError: The provided username is not valid. * danog\MadelineProto\RPCError\UsernameNotOccupiedError: The provided username is not occupied. * danog\MadelineProto\RPCError\VoiceMessagesForbiddenError: This user's privacy settings forbid you from sending voice messages. * danog\MadelineProto\RPCError\WebpageCurlFailedError: Failure while fetching the webpage with cURL. * danog\MadelineProto\RPCError\WebpageNotFoundError: A preview for the specified webpage `url` could not be generated. * danog\MadelineProto\RPCError\YouBlockedUserError: You blocked this user. * danog\MadelineProto\RemoteUrl: Indicates a remote URL to upload. * danog\MadelineProto\ResponseException: Indicates an error thrown when an unexpected response is received from telegram's servers. * danog\MadelineProto\SecretChats\SecretChat: Represents a secret chat. * danog\MadelineProto\SecretPeerNotInDbException: Indicates that the specified secret chat wasn't found. * danog\MadelineProto\SecurityException: Indicates a security error. * danog\MadelineProto\Settings: Settings class used for configuring MadelineProto. * danog\MadelineProto\Settings\AppInfo: App information. * danog\MadelineProto\Settings\Auth: Cryptography settings. * danog\MadelineProto\Settings\Connection: Connection settings. * danog\MadelineProto\Settings\DatabaseAbstract: Base class for storage backends. * danog\MadelineProto\Settings\Database\DriverDatabaseAbstract: Base class for database backends. * danog\MadelineProto\Settings\Database\Memory: Memory backend settings. * danog\MadelineProto\Settings\Database\Mysql: MySQL backend settings. * danog\MadelineProto\Settings\Database\Postgres: Postgres backend settings. * danog\MadelineProto\Settings\Database\Redis: Redis backend settings. * danog\MadelineProto\Settings\Database\SerializerType: * danog\MadelineProto\Settings\Database\SqlAbstract: Generic db backend settings. * danog\MadelineProto\Settings\Files: File management settings. * danog\MadelineProto\Settings\Ipc: IPC server settings. * danog\MadelineProto\Settings\Logger: Logger settings. * danog\MadelineProto\Settings\Metrics: Metric settings. * danog\MadelineProto\Settings\Peer: Peer database settings. * danog\MadelineProto\Settings\Pwr: PWRTelegram settings. * danog\MadelineProto\Settings\RPC: RPC settings. * danog\MadelineProto\Settings\SecretChats: Secret chat settings. * danog\MadelineProto\Settings\Serialization: Serialization settings. * danog\MadelineProto\Settings\TLSchema: TL schema settings. * danog\MadelineProto\Settings\Templates: Web and CLI template settings for login. * danog\MadelineProto\Settings\VoIP: VoIP settings. * danog\MadelineProto\Shutdown: Class that controls script shutdown. * danog\MadelineProto\SimpleEventHandler: Simple event handler class: by extending this class, you can use filters, crons and the simplified event handler API. * danog\MadelineProto\StrTools: Some tools. * danog\MadelineProto\TL\Conversion\Exception: TL conversion exception. * danog\MadelineProto\TL\Conversion\Extension: Manages generation of extensions for files. * danog\MadelineProto\TL\Exception: TL deserialization exception. * danog\MadelineProto\TL\TLInterface: * danog\MadelineProto\TL\Types\Button: Clickable button. * danog\MadelineProto\TL\Types\Bytes: Bytes wrapper. * danog\MadelineProto\TL\Types\LoginQrCode: Represents a login QR code. * danog\MadelineProto\TextEntities: Class that converts HTML or markdown to a message + set of entities. * danog\MadelineProto\Tools: Some tools. * danog\MadelineProto\TransportError: Indicates a transport error returned by Telegram's API. * danog\MadelineProto\VoIP: This update represents a VoIP Telegram call. * danog\MadelineProto\VoIP\CallState: * danog\MadelineProto\VoIP\DiscardReason: Why was the call discarded? * danog\MadelineProto\VoIP\VoIPState: VoIP protcol state. * Telegram RPC API * Methods * account.acceptAuthorization * account.cancelPasswordEmail * account.changeAuthorizationSettings * account.changePhone * account.checkUsername * account.clearRecentEmojiStatuses * account.confirmPasswordEmail * account.confirmPhone * account.createBusinessChatLink * account.createTheme * account.declinePasswordReset * account.deleteAccount * account.deleteAutoSaveExceptions * account.deleteBusinessChatLink * account.deleteSecureValue * account.disablePeerConnectedBot * account.editBusinessChatLink * account.finishTakeoutSession * account.getAccountTTL * account.getAllSecureValues * account.getAuthorizationForm * account.getAuthorizations * account.getAutoDownloadSettings * account.getAutoSaveSettings * account.getBotBusinessConnection * account.getBusinessChatLinks * account.getChannelDefaultEmojiStatuses * account.getChannelRestrictedStatusEmojis * account.getChatThemes * account.getConnectedBots * account.getContactSignUpNotification * account.getContentSettings * account.getDefaultBackgroundEmojis * account.getDefaultEmojiStatuses * account.getDefaultGroupPhotoEmojis * account.getDefaultProfilePhotoEmojis * account.getGlobalPrivacySettings * account.getMultiWallPapers * account.getNotifyExceptions * account.getNotifySettings * account.getPassword * account.getPasswordSettings * account.getPrivacy * account.getReactionsNotifySettings * account.getRecentEmojiStatuses * account.getSavedRingtones * account.getSecureValue * account.getTheme * account.getThemes * account.getTmpPassword * account.getWallPaper * account.getWallPapers * account.getWebAuthorizations * account.initTakeoutSession * account.installTheme * account.installWallPaper * account.invalidateSignInCodes * account.registerDevice * account.reorderUsernames * account.reportPeer * account.reportProfilePhoto * account.resendPasswordEmail * account.resetAuthorization * account.resetNotifySettings * account.resetPassword * account.resetWallPapers * account.resetWebAuthorization * account.resetWebAuthorizations * account.resolveBusinessChatLink * account.saveAutoDownloadSettings * account.saveAutoSaveSettings * account.saveRingtone * account.saveSecureValue * account.saveTheme * account.saveWallPaper * account.sendChangePhoneCode * account.sendConfirmPhoneCode * account.sendVerifyEmailCode * account.sendVerifyPhoneCode * account.setAccountTTL * account.setAuthorizationTTL * account.setContactSignUpNotification * account.setContentSettings * account.setGlobalPrivacySettings * account.setPrivacy * account.setReactionsNotifySettings * account.toggleConnectedBotPaused * account.toggleSponsoredMessages * account.toggleUsername * account.unregisterDevice * account.updateBirthday * account.updateBusinessAwayMessage * account.updateBusinessGreetingMessage * account.updateBusinessIntro * account.updateBusinessLocation * account.updateBusinessWorkHours * account.updateColor * account.updateConnectedBot * account.updateDeviceLocked * account.updateEmojiStatus * account.updateNotifySettings * account.updatePasswordSettings * account.updatePersonalChannel * account.updateProfile * account.updateStatus * account.updateTheme * account.updateUsername * account.uploadRingtone * account.uploadTheme * account.uploadWallPaper * account.verifyEmail * account.verifyPhone * auth.acceptLoginToken * auth.bindTempAuthKey * auth.cancelCode * auth.checkPassword * auth.checkRecoveryPassword * auth.dropTempAuthKeys * auth.exportAuthorization * auth.exportLoginToken * auth.importAuthorization * auth.importBotAuthorization * auth.importLoginToken * auth.importWebTokenAuthorization * auth.logOut * auth.recoverPassword * auth.reportMissingCode * auth.requestFirebaseSms * auth.requestPasswordRecovery * auth.resendCode * auth.resetAuthorizations * auth.resetLoginEmail * auth.sendCode * auth.signIn * auth.signUp * botLogin * bots.addPreviewMedia * bots.allowSendMessage * bots.answerWebhookJSONQuery * bots.canSendMessage * bots.deletePreviewMedia * bots.editPreviewMedia * bots.getBotCommands * bots.getBotInfo * bots.getBotMenuButton * bots.getPopularAppBots * bots.getPreviewInfo * bots.getPreviewMedias * bots.invokeWebViewCustomMethod * bots.reorderPreviewMedias * bots.reorderUsernames * bots.resetBotCommands * bots.sendCustomRequest * bots.setBotBroadcastDefaultAdminRights * bots.setBotCommands * bots.setBotGroupDefaultAdminRights * bots.setBotInfo * bots.setBotMenuButton * bots.toggleUsername * channels.checkUsername * channels.clickSponsoredMessage * channels.convertToGigagroup * channels.createChannel * channels.createForumTopic * channels.deactivateAllUsernames * channels.deleteChannel * channels.deleteHistory * channels.deleteMessages * channels.deleteParticipantHistory * channels.deleteTopicHistory * channels.editAdmin * channels.editBanned * channels.editCreator * channels.editForumTopic * channels.editLocation * channels.editPhoto * channels.editTitle * channels.exportMessageLink * channels.getAdminLog * channels.getAdminedPublicChannels * channels.getChannelRecommendations * channels.getChannels * channels.getForumTopics * channels.getForumTopicsByID * channels.getFullChannel * channels.getGroupsForDiscussion * channels.getInactiveChannels * channels.getLeftChannels * channels.getMessages * channels.getParticipant * channels.getParticipants * channels.getSendAs * channels.getSponsoredMessages * channels.inviteToChannel * channels.joinChannel * channels.leaveChannel * channels.readHistory * channels.readMessageContents * channels.reorderPinnedForumTopics * channels.reorderUsernames * channels.reportAntiSpamFalsePositive * channels.reportSpam * channels.reportSponsoredMessage * channels.restrictSponsoredMessages * channels.searchPosts * channels.setBoostsToUnblockRestrictions * channels.setDiscussionGroup * channels.setEmojiStickers * channels.setStickers * channels.toggleAntiSpam * channels.toggleForum * channels.toggleJoinRequest * channels.toggleJoinToSend * channels.toggleParticipantsHidden * channels.togglePreHistoryHidden * channels.toggleSignatures * channels.toggleSlowMode * channels.toggleUsername * channels.toggleViewForumAsMessages * channels.updateColor * channels.updateEmojiStatus * channels.updatePinnedForumTopic * channels.updateUsername * channels.viewSponsoredMessage * chatlists.checkChatlistInvite * chatlists.deleteExportedInvite * chatlists.editExportedInvite * chatlists.exportChatlistInvite * chatlists.getChatlistUpdates * chatlists.getExportedInvites * chatlists.getLeaveChatlistSuggestions * chatlists.hideChatlistUpdates * chatlists.joinChatlistInvite * chatlists.joinChatlistUpdates * chatlists.leaveChatlist * complete2falogin * completePhoneLogin * completeSignup * contacts.acceptContact * contacts.addContact * contacts.block * contacts.blockFromReplies * contacts.deleteByPhones * contacts.deleteContacts * contacts.editCloseFriends * contacts.exportContactToken * contacts.getBirthdays * contacts.getBlocked * contacts.getContactIDs * contacts.getContacts * contacts.getLocated * contacts.getSaved * contacts.getStatuses * contacts.getTopPeers * contacts.importContactToken * contacts.importContacts * contacts.resetSaved * contacts.resetTopPeerRating * contacts.resolvePhone * contacts.resolveUsername * contacts.search * contacts.setBlocked * contacts.toggleTopPeers * contacts.unblock * folders.editPeerFolders * fragment.getCollectibleInfo * getFullDialogs * getFullInfo * getId * getInfo * getPwrChat * getSelf * help.acceptTermsOfService * help.dismissSuggestion * help.editUserInfo * help.getAppConfig * help.getAppUpdate * help.getCdnConfig * help.getConfig * help.getCountriesList * help.getDeepLinkInfo * help.getInviteText * help.getNearestDc * help.getPassportConfig * help.getPeerColors * help.getPeerProfileColors * help.getPremiumPromo * help.getPromoData * help.getRecentMeUrls * help.getSupport * help.getSupportName * help.getTermsOfServiceUpdate * help.getTimezonesList * help.getUserInfo * help.hidePromoData * help.saveAppLog * help.setBotUpdatesStatus * initConnection * invokeAfterMsg * invokeAfterMsgs * invokeWithApnsSecret * invokeWithBusinessConnection * invokeWithGooglePlayIntegrity * invokeWithLayer * invokeWithMessagesRange * invokeWithTakeout * invokeWithoutUpdates * langpack.getDifference * langpack.getLangPack * langpack.getLanguage * langpack.getLanguages * langpack.getStrings * messages.acceptEncryption * messages.acceptUrlAuth * messages.addChatUser * messages.checkChatInvite * messages.checkHistoryImport * messages.checkHistoryImportPeer * messages.checkQuickReplyShortcut * messages.clearAllDrafts * messages.clearRecentReactions * messages.clearRecentStickers * messages.createChat * messages.deleteChat * messages.deleteChatUser * messages.deleteExportedChatInvite * messages.deleteFactCheck * messages.deleteHistory * messages.deleteMessages * messages.deletePhoneCallHistory * messages.deleteQuickReplyMessages * messages.deleteQuickReplyShortcut * messages.deleteRevokedExportedChatInvites * messages.deleteSavedHistory * messages.deleteScheduledMessages * messages.discardEncryption * messages.editChatAbout * messages.editChatAdmin * messages.editChatDefaultBannedRights * messages.editChatPhoto * messages.editChatTitle * messages.editExportedChatInvite * messages.editFactCheck * messages.editInlineBotMessage * messages.editMessage * messages.editQuickReplyShortcut * messages.exportChatInvite * messages.faveSticker * messages.forwardMessages * messages.getAdminsWithInvites * messages.getAllDrafts * messages.getAllStickers * messages.getArchivedStickers * messages.getAttachMenuBot * messages.getAttachMenuBots * messages.getAttachedStickers * messages.getAvailableEffects * messages.getAvailableReactions * messages.getBotApp * messages.getBotCallbackAnswer * messages.getChatInviteImporters * messages.getChats * messages.getCommonChats * messages.getCustomEmojiDocuments * messages.getDefaultHistoryTTL * messages.getDefaultTagReactions * messages.getDhConfig * messages.getDialogFilters * messages.getDialogUnreadMarks * messages.getDialogs * messages.getDiscussionMessage * messages.getDocumentByHash * messages.getEmojiGroups * messages.getEmojiKeywords * messages.getEmojiKeywordsDifference * messages.getEmojiKeywordsLanguages * messages.getEmojiProfilePhotoGroups * messages.getEmojiStatusGroups * messages.getEmojiStickerGroups * messages.getEmojiStickers * messages.getEmojiURL * messages.getExportedChatInvite * messages.getExportedChatInvites * messages.getExtendedMedia * messages.getFactCheck * messages.getFavedStickers * messages.getFeaturedEmojiStickers * messages.getFeaturedStickers * messages.getFullChat * messages.getGameHighScores * messages.getHistory * messages.getInlineBotResults * messages.getInlineGameHighScores * messages.getMaskStickers * messages.getMessageEditData * messages.getMessageReactionsList * messages.getMessageReadParticipants * messages.getMessages * messages.getMessagesReactions * messages.getMessagesViews * messages.getMyStickers * messages.getOldFeaturedStickers * messages.getOnlines * messages.getOutboxReadDate * messages.getPaidReactionPrivacy * messages.getPeerDialogs * messages.getPeerSettings * messages.getPinnedDialogs * messages.getPinnedSavedDialogs * messages.getPollResults * messages.getPollVotes * messages.getQuickReplies * messages.getQuickReplyMessages * messages.getRecentLocations * messages.getRecentReactions * messages.getRecentStickers * messages.getReplies * messages.getSavedDialogs * messages.getSavedGifs * messages.getSavedHistory * messages.getSavedReactionTags * messages.getScheduledHistory * messages.getScheduledMessages * messages.getSearchCounters * messages.getSearchResultsCalendar * messages.getSearchResultsPositions * messages.getSplitRanges * messages.getStickerSet * messages.getStickers * messages.getSuggestedDialogFilters * messages.getTopReactions * messages.getUnreadMentions * messages.getUnreadReactions * messages.getWebPage * messages.getWebPagePreview * messages.hideAllChatJoinRequests * messages.hideChatJoinRequest * messages.hidePeerSettingsBar * messages.importChatInvite * messages.initHistoryImport * messages.installStickerSet * messages.markDialogUnread * messages.migrateChat * messages.prolongWebView * messages.rateTranscribedAudio * messages.readDiscussion * messages.readEncryptedHistory * messages.readFeaturedStickers * messages.readHistory * messages.readMentions * messages.readMessageContents * messages.readReactions * messages.receivedMessages * messages.receivedQueue * messages.reorderPinnedDialogs * messages.reorderPinnedSavedDialogs * messages.reorderQuickReplies * messages.reorderStickerSets * messages.report * messages.reportEncryptedSpam * messages.reportReaction * messages.reportSpam * messages.requestAppWebView * messages.requestEncryption * messages.requestMainWebView * messages.requestSimpleWebView * messages.requestUrlAuth * messages.requestWebView * messages.saveDefaultSendAs * messages.saveDraft * messages.saveGif * messages.saveRecentSticker * messages.search * messages.searchCustomEmoji * messages.searchEmojiStickerSets * messages.searchGlobal * messages.searchSentMedia * messages.searchStickerSets * messages.sendBotRequestedPeer * messages.sendEncrypted * messages.sendEncryptedFile * messages.sendEncryptedService * messages.sendInlineBotResult * messages.sendMedia * messages.sendMessage * messages.sendMultiMedia * messages.sendPaidReaction * messages.sendQuickReplyMessages * messages.sendReaction * messages.sendScheduledMessages * messages.sendScreenshotNotification * messages.sendVote * messages.sendWebViewData * messages.sendWebViewResultMessage * messages.setBotCallbackAnswer * messages.setBotPrecheckoutResults * messages.setBotShippingResults * messages.setChatAvailableReactions * messages.setChatTheme * messages.setChatWallPaper * messages.setDefaultHistoryTTL * messages.setDefaultReaction * messages.setEncryptedTyping * messages.setGameScore * messages.setHistoryTTL * messages.setInlineBotResults * messages.setInlineGameScore * messages.setTyping * messages.startBot * messages.startHistoryImport * messages.toggleBotInAttachMenu * messages.toggleDialogFilterTags * messages.toggleDialogPin * messages.toggleNoForwards * messages.togglePaidReactionPrivacy * messages.togglePeerTranslations * messages.toggleSavedDialogPin * messages.toggleStickerSets * messages.transcribeAudio * messages.translateText * messages.uninstallStickerSet * messages.unpinAllMessages * messages.updateDialogFilter * messages.updateDialogFiltersOrder * messages.updatePinnedMessage * messages.updateSavedReactionTag * messages.uploadEncryptedFile * messages.uploadImportedMedia * messages.uploadMedia * payments.applyGiftCode * payments.assignAppStoreTransaction * payments.assignPlayMarketTransaction * payments.canPurchasePremium * payments.changeStarsSubscription * payments.checkGiftCode * payments.clearSavedInfo * payments.exportInvoice * payments.fulfillStarsSubscription * payments.getBankCardData * payments.getGiveawayInfo * payments.getPaymentForm * payments.getPaymentReceipt * payments.getPremiumGiftCodeOptions * payments.getSavedInfo * payments.getStarsGiftOptions * payments.getStarsGiveawayOptions * payments.getStarsRevenueAdsAccountUrl * payments.getStarsRevenueStats * payments.getStarsRevenueWithdrawalUrl * payments.getStarsStatus * payments.getStarsSubscriptions * payments.getStarsTopupOptions * payments.getStarsTransactions * payments.getStarsTransactionsByID * payments.launchPrepaidGiveaway * payments.refundStarsCharge * payments.sendPaymentForm * payments.sendStarsForm * payments.validateRequestedInfo * phone.acceptCall * phone.checkGroupCall * phone.confirmCall * phone.createGroupCall * phone.discardCall * phone.discardGroupCall * phone.editGroupCallParticipant * phone.editGroupCallTitle * phone.exportGroupCallInvite * phone.getCallConfig * phone.getGroupCall * phone.getGroupCallJoinAs * phone.getGroupCallStreamChannels * phone.getGroupCallStreamRtmpUrl * phone.getGroupParticipants * phone.inviteToGroupCall * phone.joinGroupCall * phone.joinGroupCallPresentation * phone.leaveGroupCall * phone.leaveGroupCallPresentation * phone.receivedCall * phone.requestCall * phone.saveCallDebug * phone.saveCallLog * phone.saveDefaultGroupCallJoinAs * phone.sendSignalingData * phone.setCallRating * phone.startScheduledGroupCall * phone.toggleGroupCallRecord * phone.toggleGroupCallSettings * phone.toggleGroupCallStartSubscription * phoneLogin * photos.deletePhotos * photos.getUserPhotos * photos.updateProfilePhoto * photos.uploadContactProfilePhoto * photos.uploadProfilePhoto * premium.applyBoost * premium.getBoostsList * premium.getBoostsStatus * premium.getMyBoosts * premium.getUserBoosts * requestSecretChat * smsjobs.finishJob * smsjobs.getSmsJob * smsjobs.getStatus * smsjobs.isEligibleToJoin * smsjobs.join * smsjobs.leave * smsjobs.updateSettings * stats.getBroadcastRevenueStats * stats.getBroadcastRevenueTransactions * stats.getBroadcastRevenueWithdrawalUrl * stats.getBroadcastStats * stats.getMegagroupStats * stats.getMessagePublicForwards * stats.getMessageStats * stats.getStoryPublicForwards * stats.getStoryStats * stats.loadAsyncGraph * stickers.addStickerToSet * stickers.changeSticker * stickers.changeStickerPosition * stickers.checkShortName * stickers.createStickerSet * stickers.deleteStickerSet * stickers.removeStickerFromSet * stickers.renameStickerSet * stickers.replaceSticker * stickers.setStickerSetThumb * stickers.suggestShortName * stories.activateStealthMode * stories.canSendStory * stories.deleteStories * stories.editStory * stories.exportStoryLink * stories.getAllReadPeerStories * stories.getAllStories * stories.getChatsToSend * stories.getPeerMaxIDs * stories.getPeerStories * stories.getPinnedStories * stories.getStoriesArchive * stories.getStoriesByID * stories.getStoriesViews * stories.getStoryReactionsList * stories.getStoryViewsList * stories.incrementStoryViews * stories.readStories * stories.report * stories.searchPosts * stories.sendReaction * stories.sendStory * stories.toggleAllStoriesHidden * stories.togglePeerStoriesHidden * stories.togglePinned * stories.togglePinnedToTop * update2fa * updates.getChannelDifference * updates.getDifference * updates.getState * upload.getCdnFile * upload.getCdnFileHashes * upload.getFile * upload.getFileHashes * upload.getWebFile * upload.reuploadCdnFile * upload.saveBigFilePart * upload.saveFilePart * users.getFullUser * users.getIsPremiumRequiredToContact * users.getUsers * users.setSecureValueErrors This site uses Just the Docs, a modified documentation theme for Gojekyll. 1. MadelineProto API 2. danog\MadelineProto\EventHandler\AbstractPrivateMessage: Represents a private or secret chat message. DANOG\MADELINEPROTO\EVENTHANDLER\ABSTRACTPRIVATEMESSAGE Back to index > Author: Daniil Gentili daniil@daniil.it Represents a private or secret chat message. PROPERTIES * $message: string Content of the message * $fwdInfo: ?danog\MadelineProto\EventHandler\ForwardedInfo Info about a forwarded message * $command: ?string Bot command (if present) * $commandType: ?danog\MadelineProto\EventHandler\CommandType Bot command type (if present) * $commandArgs: list<string> Bot command arguments (if present) * $protected: bool Whether this message is protected * $matches: list<string> Regex matches, if a filter regex is present * $matchesAll: array<array-key, (array<array-key, (list{string, int} | null | string)> | mixed)> Regex matches, if a filter multiple match regex is present * $media: (danog\MadelineProto\EventHandler\Media\Audio | danog\MadelineProto\EventHandler\Media\Document | danog\MadelineProto\EventHandler\Media\DocumentPhoto | danog\MadelineProto\EventHandler\Media\Gif | danog\MadelineProto\EventHandler\Media\MaskSticker | danog\MadelineProto\EventHandler\Media\Photo | danog\MadelineProto\EventHandler\Media\RoundVideo | danog\MadelineProto\EventHandler\Media\Sticker | danog\MadelineProto\EventHandler\Media\Video | danog\MadelineProto\EventHandler\Media\Voice | null) Attached media. * $fromScheduled: bool Whether this message is a sent scheduled message * $viaBotId: ?int If the message was generated by an inline query, ID of the bot that generated it * $editDate: ?int Last edit date of the message * $editHide: bool Indicates if the post has a hidden edit, which is an edit that does not modify the actual message content. Used to signify non-content related updates such as reactions. * $keyboard: (danog\MadelineProto\EventHandler\Keyboard\InlineKeyboard | danog\MadelineProto\EventHandler\Keyboard\ReplyKeyboard | null) Inline or reply keyboard. * $imported: bool Whether this message was imported from a foreign chat service * $psaType: ?string For Public Service Announcement messages, the PSA type * $nextSent: ?self * $views: ?int View counter for messages from channels or forwarded from channels * $forwards: ?int Forward counter for messages from channels or forwarded from channels * $signature: ?string Author of the post, if signatures are enabled for messages from channels or forwarded from channels * $entities: list<MessageEntity> Message entities for styled text * $groupedId: ?int Group ID for albums. All messages associated to the same album will have an identical grouped ID. * $poll: ?danog\MadelineProto\EventHandler\AbstractPoll The poll * $scheduled: bool Whether this message is a scheduled message * $id: int Message ID * $out: bool Whether the message is outgoing * $chatId: int ID of the chat where the message was sent * $senderId: int ID of the sender of the message * $replyToMsgId: ?int ID of the message to which this message is replying * $date: int When was the message sent * $topicId: ?int ID of the forum topic where the message was sent * $threadId: ?int ID of the message thread where the message was sent * $replyToScheduled: bool Whether this is a reply to a scheduled message * $mentioned: bool Whether we were mentioned in this message * $silent: bool Whether this message was sent without any notification (silently) * $ttlPeriod: ?int Time-to-live of the message METHOD LIST: * screenShot(): \danog\MadelineProto\EventHandler\Message\Service\DialogScreenshotTaken * pin(bool $pmOneside = false, bool $silent = false): void * unpin(bool $pmOneside = false, bool $silent = false): ?\danog\MadelineProto\EventHandler\Update * getOurReactions(): list<(string|int)> * report(\danog\MadelineProto\EventHandler\Message\ReportReason $reason, string $message): bool * saveContact(string $firstName, (string|null) $lastName = NULL, (string|null) $phoneNumber = NULL, bool $addPhonePrivacyException = false): void * removeContact(): void * inviteToChannel((string|int) $channel): void * addReaction((string|int) $reaction, bool $big = false, bool $addToRecent = true): list<(string|int)> * delReaction((string|int) $reaction): list<(string|int)> * translate(string $toLang): string * editText(string $message, \danog\MadelineProto\ParseMode $parseMode = \danog\MadelineProto\ParseMode::TEXT, (array|null) $replyMarkup = NULL, (int|null) $scheduleDate = NULL, bool $noWebpage = false): \danog\MadelineProto\EventHandler\Message * editReplyMarkup(array $replyMarkup): \danog\MadelineProto\EventHandler\Message * replyOrEdit(string $message, \danog\MadelineProto\ParseMode $parseMode = \danog\MadelineProto\ParseMode::TEXT, (array|null) $replyMarkup = NULL, (int|null) $scheduleDate = NULL, bool $noWebpage = false): \danog\MadelineProto\EventHandler\Message * forward((integer|string) $peer, list<int> $id = [], bool $dropAuthor = false, bool $dropCaption = false, int $topicId = 1, boolean $silent = false, boolean $noForwards = false, boolean $background = false, boolean $score = false, (integer|null) $scheduleDate = NULL, (integer|string|null) $sendAs = NULL): non-empty-list<\danog\MadelineProto\EventHandler\Message> * getHTML(bool $allowTelegramTags = false): string * isReply(): bool * getReply(class-string<T> $class = 'danog\\MadelineProto\\EventHandler\\AbstractMessage'): ?T * delete(boolean $revoke = true): void * reply(string $message, \danog\MadelineProto\ParseMode $parseMode = \danog\MadelineProto\ParseMode::TEXT, (array|null) $replyMarkup = NULL, (integer|string|null) $sendAs = NULL, (integer|null) $scheduleDate = NULL, boolean $noWebpage = false, boolean $silent = false, boolean $noForwards = false, boolean $background = false, boolean $clearDraft = false, boolean $updateStickersetsOrder = false, ?\Amp\Cancellation $cancellation = NULL): \danog\MadelineProto\EventHandler\Message * replyDocument((\danog\MadelineProto\EventHandler\Message|\danog\MadelineProto\EventHandler\Media|\danog\MadelineProto\LocalFile|\danog\MadelineProto\RemoteUrl|\danog\MadelineProto\BotApiFileId|\Amp\ByteStream\ReadableStream) $file, (\danog\MadelineProto\EventHandler\Message|\danog\MadelineProto\EventHandler\Media|\danog\MadelineProto\LocalFile|\danog\MadelineProto\RemoteUrl|\danog\MadelineProto\BotApiFileId|\Amp\ByteStream\ReadableStream|null) $thumb = NULL, string $caption = '', \danog\MadelineProto\ParseMode $parseMode = \danog\MadelineProto\ParseMode::TEXT, ?callable $callback = NULL, ?string $fileName = NULL, ?string $mimeType = NULL, ?int $ttl = NULL, bool $spoiler = false, (array|null) $replyMarkup = NULL, (integer|null) $sendAs = NULL, (integer|null) $scheduleDate = NULL, boolean $silent = false, bool $noForwards = false, boolean $background = false, boolean $clearDraft = false, boolean $updateStickersetsOrder = false, boolean $forceResend = false, \Amp\Cancellation $cancellation = NULL): \danog\MadelineProto\EventHandler\Message * replyVideo((\danog\MadelineProto\EventHandler\Message|\danog\MadelineProto\EventHandler\Media|\danog\MadelineProto\LocalFile|\danog\MadelineProto\RemoteUrl|\danog\MadelineProto\BotApiFileId|\Amp\ByteStream\ReadableStream) $file, (\danog\MadelineProto\EventHandler\Message|\danog\MadelineProto\EventHandler\Media|\danog\MadelineProto\LocalFile|\danog\MadelineProto\RemoteUrl|\danog\MadelineProto\BotApiFileId|\Amp\ByteStream\ReadableStream|null) $thumb = NULL, string $caption = '', \danog\MadelineProto\ParseMode $parseMode = \danog\MadelineProto\ParseMode::TEXT, ?callable $callback = NULL, ?string $fileName = NULL, string $mimeType = 'video/mp4', (integer|null) $ttl = NULL, boolean $spoiler = false, boolean $roundMessage = false, boolean $supportsStreaming = true, boolean $noSound = false, (integer|null) $duration = NULL, (integer|null) $width = NULL, (integer|null) $height = NULL, (array|null) $replyMarkup = NULL, (integer|string|null) $sendAs = NULL, (integer|null) $scheduleDate = NULL, boolean $silent = false, boolean $noForwards = false, boolean $background = false, boolean $clearDraft = false, boolean $forceResend = false, bool $updateStickersetsOrder = false, \Amp\Cancellation $cancellation = NULL): \danog\MadelineProto\EventHandler\Message * replyGif((\danog\MadelineProto\EventHandler\Message|\danog\MadelineProto\EventHandler\Media|\danog\MadelineProto\LocalFile|\danog\MadelineProto\RemoteUrl|\danog\MadelineProto\BotApiFileId|\Amp\ByteStream\ReadableStream) $file, (\danog\MadelineProto\EventHandler\Message|\danog\MadelineProto\EventHandler\Media|\danog\MadelineProto\LocalFile|\danog\MadelineProto\RemoteUrl|\danog\MadelineProto\BotApiFileId|\Amp\ByteStream\ReadableStream|null) $thumb = NULL, string $caption = '', \danog\MadelineProto\ParseMode $parseMode = \danog\MadelineProto\ParseMode::TEXT, ?callable $callback = NULL, ?string $fileName = NULL, (integer|null) $ttl = NULL, boolean $spoiler = false, (array|null) $replyMarkup = NULL, (integer|string|null) $sendAs = NULL, (integer|null) $scheduleDate = NULL, boolean $silent = false, boolean $noForwards = false, boolean $background = false, boolean $clearDraft = false, boolean $forceResend = false, ?\Amp\Cancellation $cancellation = NULL): \danog\MadelineProto\EventHandler\Message * replyAudio((\danog\MadelineProto\EventHandler\Message|\danog\MadelineProto\EventHandler\Media|\danog\MadelineProto\LocalFile|\danog\MadelineProto\RemoteUrl|\danog\MadelineProto\BotApiFileId|\Amp\ByteStream\ReadableStream) $file, (\danog\MadelineProto\EventHandler\Message|\danog\MadelineProto\EventHandler\Media|\danog\MadelineProto\LocalFile|\danog\MadelineProto\RemoteUrl|\danog\MadelineProto\BotApiFileId|\Amp\ByteStream\ReadableStream|null) $thumb = NULL, string $caption = '', \danog\MadelineProto\ParseMode $parseMode = \danog\MadelineProto\ParseMode::TEXT, ?callable $callback = NULL, ?string $fileName = NULL, ?string $mimeType = NULL, (integer|null) $duration = NULL, (string|null) $title = NULL, (string|null) $performer = NULL, ?int $ttl = NULL, (array|null) $replyMarkup = NULL, (integer|string|null) $sendAs = NULL, (integer|null) $scheduleDate = NULL, boolean $silent = false, boolean $noForwards = false, boolean $background = false, boolean $clearDraft = false, boolean $forceResend = false, ?\Amp\Cancellation $cancellation = NULL): \danog\MadelineProto\EventHandler\Message * replyVoice((\danog\MadelineProto\EventHandler\Message|\danog\MadelineProto\EventHandler\Media|\danog\MadelineProto\LocalFile|\danog\MadelineProto\RemoteUrl|\danog\MadelineProto\BotApiFileId|\Amp\ByteStream\ReadableStream) $file, string $caption = '', \danog\MadelineProto\ParseMode $parseMode = \danog\MadelineProto\ParseMode::TEXT, ?callable $callback = NULL, ?string $fileName = NULL, (integer|null) $ttl = NULL, (integer|null) $duration = NULL, (array|null) $waveform = NULL, (array|null) $replyMarkup = NULL, (integer|string|null) $sendAs = NULL, (integer|null) $scheduleDate = NULL, boolean $silent = false, boolean $noForwards = false, boolean $background = false, boolean $clearDraft = false, boolean $forceResend = false, ?\Amp\Cancellation $cancellation = NULL): \danog\MadelineProto\EventHandler\Message * replyPhoto((\danog\MadelineProto\EventHandler\Message|\danog\MadelineProto\EventHandler\Media|\danog\MadelineProto\LocalFile|\danog\MadelineProto\RemoteUrl|\danog\MadelineProto\BotApiFileId|\Amp\ByteStream\ReadableStream) $file, string $caption = '', \danog\MadelineProto\ParseMode $parseMode = \danog\MadelineProto\ParseMode::TEXT, ?callable $callback = NULL, ?string $fileName = NULL, ?int $ttl = NULL, bool $spoiler = false, (array|null) $replyMarkup = NULL, (integer|null) $sendAs = NULL, (integer|null) $scheduleDate = NULL, boolean $silent = false, bool $noForwards = false, boolean $background = false, boolean $clearDraft = false, boolean $updateStickersetsOrder = false, boolean $forceResend = false, \Amp\Cancellation $cancellation = NULL): \danog\MadelineProto\EventHandler\Message * replySticker((\danog\MadelineProto\EventHandler\Message|\danog\MadelineProto\EventHandler\Media|\danog\MadelineProto\LocalFile|\danog\MadelineProto\RemoteUrl|\danog\MadelineProto\BotApiFileId|\Amp\ByteStream\ReadableStream) $file, string $mimeType, string $emoji = '', ?callable $callback = NULL, ?string $fileName = NULL, ?int $ttl = NULL, (array|null) $replyMarkup = NULL, (integer|null) $sendAs = NULL, (integer|null) $scheduleDate = NULL, boolean $silent = false, boolean $noForwards = false, boolean $background = false, boolean $clearDraft = false, boolean $updateStickersetsOrder = false, boolean $forceResend = false, \Amp\Cancellation $cancellation = NULL): \danog\MadelineProto\EventHandler\Message * sendText(string $message, \danog\MadelineProto\ParseMode $parseMode = \danog\MadelineProto\ParseMode::TEXT, (array|null) $replyMarkup = NULL, (integer|string|null) $sendAs = NULL, (integer|null) $scheduleDate = NULL, boolean $noWebpage = false, boolean $silent = false, boolean $noForwards = false, boolean $background = false, boolean $clearDraft = false, boolean $updateStickersetsOrder = false, ?\Amp\Cancellation $cancellation = NULL): \danog\MadelineProto\EventHandler\Message * block(): bool * unblock(): bool * getStories(): list<\danog\MadelineProto\EventHandler\AbstractStory> * [setAction(\danog\MadelineProto\EventHandler\Action $action = \danog\MadelineProto\EventHandler\Action\Typing::__set_state(array(]]): bool](#setAction) * read(bool $readAll = false): boolean * enableTTL(int<1, max> $seconds = 86400): \danog\MadelineProto\EventHandler\Message\Service\DialogSetTTL * disableTTL(): \danog\MadelineProto\EventHandler\Message\Service\DialogSetTTL * enableAutoTranslate(): bool * disableAutoTranslate(): bool METHODS: SCREENSHOT(): \DANOG\MADELINEPROTO\EVENTHANDLER\MESSAGE\SERVICE\DIALOGSCREENSHOTTAKEN Notify the other user in a private chat that a screenshot of the chat was taken. SEE ALSO: * \danog\MadelineProto\EventHandler\Message\Service\DialogScreenshotTaken: A screenshot of the chat was taken. PIN(BOOL $PMONESIDE = FALSE, BOOL $SILENT = FALSE): VOID Pin a message. Parameters: * $pmOneside: bool Whether the message should only be pinned on the local side of a one-to-one chat * $silent: bool Pin the message silently, without triggering a notification UNPIN(BOOL $PMONESIDE = FALSE, BOOL $SILENT = FALSE): ?\DANOG\MADELINEPROTO\EVENTHANDLER\UPDATE Unpin a message. Parameters: * $pmOneside: bool Whether the message should only be pinned on the local side of a one-to-one chat * $silent: bool Pin the message silently, without triggering a notification SEE ALSO: * \danog\MadelineProto\EventHandler\Update: Represents a generic update. GETOURREACTIONS(): LIST<(STRING|INT)> Get our reactions on the message. REPORT(\DANOG\MADELINEPROTO\EVENTHANDLER\MESSAGE\REPORTREASON $REASON, STRING $MESSAGE): BOOL Report a message in a chat for violation of telegram’s Terms of Service. Parameters: * $reason: \danog\MadelineProto\EventHandler\Message\ReportReason Why are these messages being reported * $message: string Comment for report moderation SEE ALSO: * \danog\MadelineProto\EventHandler\Message\ReportReason SAVECONTACT(STRING $FIRSTNAME, (STRING|NULL) $LASTNAME = NULL, (STRING|NULL) $PHONENUMBER = NULL, BOOL $ADDPHONEPRIVACYEXCEPTION = FALSE): VOID Save message sender to your account contacts. Parameters: * $firstName: string First name * $lastName: (string|null) Last name * $phoneNumber: (string|null) Telegram ID of the other user * $addPhonePrivacyException: bool Allow the other user to see our phone number? REMOVECONTACT(): VOID Remove message sender from your account contacts. INVITETOCHANNEL((STRING|INT) $CHANNEL): VOID Invite message sender to requested channel. Parameters: * $channel: (string|int) Username, Channel ID ADDREACTION((STRING|INT) $REACTION, BOOL $BIG = FALSE, BOOL $ADDTORECENT = TRUE): LIST<(STRING|INT)> Add reaction to message. Parameters: * $reaction: (string|int) reaction * $big: bool Whether a bigger and longer reaction should be shown * $addToRecent: bool Add this reaction to the recent reactions list. DELREACTION((STRING|INT) $REACTION): LIST<(STRING|INT)> Delete reaction from message. Parameters: * $reaction: (string|int) string or int Reaction TRANSLATE(STRING $TOLANG): STRING Translate text message(for media translate it caption). Parameters: * $toLang: string Two-letter ISO 639-1 language code of the language to which the message is translated EDITTEXT(STRING $MESSAGE, \DANOG\MADELINEPROTO\PARSEMODE $PARSEMODE = \DANOG\MADELINEPROTO\PARSEMODE::TEXT, (ARRAY|NULL) $REPLYMARKUP = NULL, (INT|NULL) $SCHEDULEDATE = NULL, BOOL $NOWEBPAGE = FALSE): \DANOG\MADELINEPROTO\EVENTHANDLER\MESSAGE Edit message text. Parameters: * $message: string New message * $parseMode: \danog\MadelineProto\ParseMode Whether to parse HTML or Markdown markup in the message * $replyMarkup: (array|null) Reply markup for inline keyboards * $scheduleDate: (int|null) Scheduled message date for scheduled messages * $noWebpage: bool Disable webpage preview SEE ALSO: * \danog\MadelineProto\ParseMode: Indicates a parsing mode for text. EDITREPLYMARKUP(ARRAY $REPLYMARKUP): \DANOG\MADELINEPROTO\EVENTHANDLER\MESSAGE Edit message keyboard. Parameters: * $replyMarkup: array Reply markup for inline keyboards REPLYOREDIT(STRING $MESSAGE, \DANOG\MADELINEPROTO\PARSEMODE $PARSEMODE = \DANOG\MADELINEPROTO\PARSEMODE::TEXT, (ARRAY|NULL) $REPLYMARKUP = NULL, (INT|NULL) $SCHEDULEDATE = NULL, BOOL $NOWEBPAGE = FALSE): \DANOG\MADELINEPROTO\EVENTHANDLER\MESSAGE If the message is outgoing, will edit the message’s text, otherwise will reply to the message. Parameters: * $message: string New message * $parseMode: \danog\MadelineProto\ParseMode Whether to parse HTML or Markdown markup in the message * $replyMarkup: (array|null) Reply markup for inline keyboards * $scheduleDate: (int|null) Scheduled message date for scheduled messages * $noWebpage: bool Disable webpage preview SEE ALSO: * \danog\MadelineProto\ParseMode: Indicates a parsing mode for text. FORWARD((INTEGER|STRING) $PEER, LIST<INT> $ID = [], BOOL $DROPAUTHOR = FALSE, BOOL $DROPCAPTION = FALSE, INT $TOPICID = 1, BOOLEAN $SILENT = FALSE, BOOLEAN $NOFORWARDS = FALSE, BOOLEAN $BACKGROUND = FALSE, BOOLEAN $SCORE = FALSE, (INTEGER|NULL) $SCHEDULEDATE = NULL, (INTEGER|STRING|NULL) $SENDAS = NULL): NON-EMPTY-LIST<\DANOG\MADELINEPROTO\EVENTHANDLER\MESSAGE> Forwards messages by their IDs. Parameters: * $peer: (integer|string) Destination peer * $id: list<int> IDs of messages * $dropAuthor: bool Whether to forward messages without quoting the original author * $dropCaption: bool Whether to strip captions from media * $topicId: int Destination forum topic * $silent: boolean Whether to send the message silently, without triggering notifications. * $noForwards: boolean Only for bots, disallows further re-forwarding and saving of the messages, even if the destination chat doesn’t have content protection enabled * $background: boolean Send this message as background message * $score: boolean When forwarding games, whether to include your score in the game * $scheduleDate: (integer|null) Schedule date. * $sendAs: (integer|string|null) Peer to send the message as. SEE ALSO: * non-empty-list GETHTML(BOOL $ALLOWTELEGRAMTAGS = FALSE): STRING Get an HTML version of the message. Parameters: * $allowTelegramTags: bool Whether to allow telegram-specific tags like tg-spoiler, tg-emoji, mention links and so on… ISREPLY(): BOOL Check if the current message replies to another message. GETREPLY(CLASS-STRING<T> $CLASS = 'DANOG\\MADELINEPROTO\\EVENTHANDLER\\ABSTRACTMESSAGE'): ?T Get replied-to message. May return null if the replied-to message was deleted or if the message does not reply to any other message. Parameters: * $class: class-string<T> Only return a reply if it is of the specified type, return null otherwise. DELETE(BOOLEAN $REVOKE = TRUE): VOID Delete the message. Parameters: * $revoke: boolean Whether to delete the message for all participants of the chat. REPLY(STRING $MESSAGE, \DANOG\MADELINEPROTO\PARSEMODE $PARSEMODE = \DANOG\MADELINEPROTO\PARSEMODE::TEXT, (ARRAY|NULL) $REPLYMARKUP = NULL, (INTEGER|STRING|NULL) $SENDAS = NULL, (INTEGER|NULL) $SCHEDULEDATE = NULL, BOOLEAN $NOWEBPAGE = FALSE, BOOLEAN $SILENT = FALSE, BOOLEAN $NOFORWARDS = FALSE, BOOLEAN $BACKGROUND = FALSE, BOOLEAN $CLEARDRAFT = FALSE, BOOLEAN $UPDATESTICKERSETSORDER = FALSE, ?\AMP\CANCELLATION $CANCELLATION = NULL): \DANOG\MADELINEPROTO\EVENTHANDLER\MESSAGE Reply to the message. Parameters: * $message: string Message to send * $parseMode: \danog\MadelineProto\ParseMode Parse mode * $replyMarkup: (array|null) Keyboard information. * $sendAs: (integer|string|null) Peer to send the message as. * $scheduleDate: (integer|null) Schedule date. * $noWebpage: boolean Set this flag to disable generation of the webpage preview * $silent: boolean Whether to send the message silently, without triggering notifications. * $noForwards: boolean Only for bots, disallows further re-forwarding and saving of the messages, even if the destination chat doesn’t have content protection enabled * $background: boolean Send this message as background message * $clearDraft: boolean Clears the draft field * $updateStickersetsOrder: boolean Whether to move used stickersets to top * $cancellation: ?\Amp\Cancellation SEE ALSO: * \danog\MadelineProto\ParseMode: Indicates a parsing mode for text. * \Amp\Cancellation * \danog\MadelineProto\EventHandler\Message: Represents an incoming or outgoing message. REPLYDOCUMENT((\DANOG\MADELINEPROTO\EVENTHANDLER\MESSAGE|\DANOG\MADELINEPROTO\EVENTHANDLER\MEDIA|\DANOG\MADELINEPROTO\LOCALFILE|\DANOG\MADELINEPROTO\REMOTEURL|\DANOG\MADELINEPROTO\BOTAPIFILEID|\AMP\BYTESTREAM\READABLESTREAM) $FILE, (\DANOG\MADELINEPROTO\EVENTHANDLER\MESSAGE|\DANOG\MADELINEPROTO\EVENTHANDLER\MEDIA|\DANOG\MADELINEPROTO\LOCALFILE|\DANOG\MADELINEPROTO\REMOTEURL|\DANOG\MADELINEPROTO\BOTAPIFILEID|\AMP\BYTESTREAM\READABLESTREAM|NULL) $THUMB = NULL, STRING $CAPTION = '', \DANOG\MADELINEPROTO\PARSEMODE $PARSEMODE = \DANOG\MADELINEPROTO\PARSEMODE::TEXT, ?CALLABLE $CALLBACK = NULL, ?STRING $FILENAME = NULL, ?STRING $MIMETYPE = NULL, ?INT $TTL = NULL, BOOL $SPOILER = FALSE, (ARRAY|NULL) $REPLYMARKUP = NULL, (INTEGER|NULL) $SENDAS = NULL, (INTEGER|NULL) $SCHEDULEDATE = NULL, BOOLEAN $SILENT = FALSE, BOOL $NOFORWARDS = FALSE, BOOLEAN $BACKGROUND = FALSE, BOOLEAN $CLEARDRAFT = FALSE, BOOLEAN $UPDATESTICKERSETSORDER = FALSE, BOOLEAN $FORCERESEND = FALSE, \AMP\CANCELLATION $CANCELLATION = NULL): \DANOG\MADELINEPROTO\EVENTHANDLER\MESSAGE Reply a document. Please use named arguments to call this method. Parameters: * $file: (\danog\MadelineProto\EventHandler\Message|\danog\MadelineProto\EventHandler\Media|\danog\MadelineProto\LocalFile|\danog\MadelineProto\RemoteUrl|\danog\MadelineProto\BotApiFileId|\Amp\ByteStream\ReadableStream) File to upload: can be a message to reuse media present in a message. * $thumb: (\danog\MadelineProto\EventHandler\Message|\danog\MadelineProto\EventHandler\Media|\danog\MadelineProto\LocalFile|\danog\MadelineProto\RemoteUrl|\danog\MadelineProto\BotApiFileId|\Amp\ByteStream\ReadableStream|null) Optional: Thumbnail to upload * $caption: string Caption of document * $parseMode: \danog\MadelineProto\ParseMode Text parse mode for the caption * $callback: ?callable * $fileName: ?string Optional file name, if absent will be extracted from the passed $file. * $mimeType: ?string * $ttl: ?int * $spoiler: bool * $replyMarkup: (array|null) Keyboard information. * $sendAs: (integer|null) Peer to send the message as. * $scheduleDate: (integer|null) Schedule date. * $silent: boolean Whether to send the message silently, without triggering notifications. * $noForwards: bool * $background: boolean Send this message as background message * $clearDraft: boolean Clears the draft field * $updateStickersetsOrder: boolean Whether to move used stickersets to top * $forceResend: boolean Whether to forcefully resend the file, even if its type and name are the same. * $cancellation: \Amp\Cancellation Cancellation. SEE ALSO: * \danog\MadelineProto\EventHandler\Message: Represents an incoming or outgoing message. * \danog\MadelineProto\EventHandler\Media: Represents a generic media. * \danog\MadelineProto\LocalFile: Indicates a local file to upload. * \danog\MadelineProto\RemoteUrl: Indicates a remote URL to upload. * \danog\MadelineProto\BotApiFileId: Indicates a bot API file ID to upload using sendDocument, sendPhoto etc… * \Amp\ByteStream\ReadableStream * \danog\MadelineProto\ParseMode: Indicates a parsing mode for text. * \Amp\Cancellation REPLYVIDEO((\DANOG\MADELINEPROTO\EVENTHANDLER\MESSAGE|\DANOG\MADELINEPROTO\EVENTHANDLER\MEDIA|\DANOG\MADELINEPROTO\LOCALFILE|\DANOG\MADELINEPROTO\REMOTEURL|\DANOG\MADELINEPROTO\BOTAPIFILEID|\AMP\BYTESTREAM\READABLESTREAM) $FILE, (\DANOG\MADELINEPROTO\EVENTHANDLER\MESSAGE|\DANOG\MADELINEPROTO\EVENTHANDLER\MEDIA|\DANOG\MADELINEPROTO\LOCALFILE|\DANOG\MADELINEPROTO\REMOTEURL|\DANOG\MADELINEPROTO\BOTAPIFILEID|\AMP\BYTESTREAM\READABLESTREAM|NULL) $THUMB = NULL, STRING $CAPTION = '', \DANOG\MADELINEPROTO\PARSEMODE $PARSEMODE = \DANOG\MADELINEPROTO\PARSEMODE::TEXT, ?CALLABLE $CALLBACK = NULL, ?STRING $FILENAME = NULL, STRING $MIMETYPE = 'VIDEO/MP4', (INTEGER|NULL) $TTL = NULL, BOOLEAN $SPOILER = FALSE, BOOLEAN $ROUNDMESSAGE = FALSE, BOOLEAN $SUPPORTSSTREAMING = TRUE, BOOLEAN $NOSOUND = FALSE, (INTEGER|NULL) $DURATION = NULL, (INTEGER|NULL) $WIDTH = NULL, (INTEGER|NULL) $HEIGHT = NULL, (ARRAY|NULL) $REPLYMARKUP = NULL, (INTEGER|STRING|NULL) $SENDAS = NULL, (INTEGER|NULL) $SCHEDULEDATE = NULL, BOOLEAN $SILENT = FALSE, BOOLEAN $NOFORWARDS = FALSE, BOOLEAN $BACKGROUND = FALSE, BOOLEAN $CLEARDRAFT = FALSE, BOOLEAN $FORCERESEND = FALSE, BOOL $UPDATESTICKERSETSORDER = FALSE, \AMP\CANCELLATION $CANCELLATION = NULL): \DANOG\MADELINEPROTO\EVENTHANDLER\MESSAGE Reply a video. Please use named arguments to call this method. Parameters: * $file: (\danog\MadelineProto\EventHandler\Message|\danog\MadelineProto\EventHandler\Media|\danog\MadelineProto\LocalFile|\danog\MadelineProto\RemoteUrl|\danog\MadelineProto\BotApiFileId|\Amp\ByteStream\ReadableStream) File to upload: can be a message to reuse media present in a message. * $thumb: (\danog\MadelineProto\EventHandler\Message|\danog\MadelineProto\EventHandler\Media|\danog\MadelineProto\LocalFile|\danog\MadelineProto\RemoteUrl|\danog\MadelineProto\BotApiFileId|\Amp\ByteStream\ReadableStream|null) Optional: Thumbnail to upload * $caption: string Caption of document * $parseMode: \danog\MadelineProto\ParseMode Text parse mode for the caption * $callback: ?callable * $fileName: ?string Optional file name, if absent will be extracted from the passed $file. * $mimeType: string * $ttl: (integer|null) Time to live * $spoiler: boolean Whether the message is a spoiler * $roundMessage: boolean Whether the message should be round * $supportsStreaming: boolean Whether the video supports streaming * $noSound: boolean Whether the video has no sound * $duration: (integer|null) Duration of the video * $width: (integer|null) Width of the video * $height: (integer|null) Height of the video * $replyMarkup: (array|null) Keyboard information. * $sendAs: (integer|string|null) Peer to send the message as. * $scheduleDate: (integer|null) Schedule date. * $silent: boolean Whether to send the message silently, without triggering notifications. * $noForwards: boolean Whether to disable forwards for this message. * $background: boolean Send this message as background message * $clearDraft: boolean Clears the draft field * $forceResend: boolean Whether to forcefully resend the file, even if its type and name are the same. * $updateStickersetsOrder: bool * $cancellation: \Amp\Cancellation Cancellation. SEE ALSO: * \danog\MadelineProto\EventHandler\Message: Represents an incoming or outgoing message. * \danog\MadelineProto\EventHandler\Media: Represents a generic media. * \danog\MadelineProto\LocalFile: Indicates a local file to upload. * \danog\MadelineProto\RemoteUrl: Indicates a remote URL to upload. * \danog\MadelineProto\BotApiFileId: Indicates a bot API file ID to upload using sendDocument, sendPhoto etc… * \Amp\ByteStream\ReadableStream * \danog\MadelineProto\ParseMode: Indicates a parsing mode for text. * \Amp\Cancellation REPLYGIF((\DANOG\MADELINEPROTO\EVENTHANDLER\MESSAGE|\DANOG\MADELINEPROTO\EVENTHANDLER\MEDIA|\DANOG\MADELINEPROTO\LOCALFILE|\DANOG\MADELINEPROTO\REMOTEURL|\DANOG\MADELINEPROTO\BOTAPIFILEID|\AMP\BYTESTREAM\READABLESTREAM) $FILE, (\DANOG\MADELINEPROTO\EVENTHANDLER\MESSAGE|\DANOG\MADELINEPROTO\EVENTHANDLER\MEDIA|\DANOG\MADELINEPROTO\LOCALFILE|\DANOG\MADELINEPROTO\REMOTEURL|\DANOG\MADELINEPROTO\BOTAPIFILEID|\AMP\BYTESTREAM\READABLESTREAM|NULL) $THUMB = NULL, STRING $CAPTION = '', \DANOG\MADELINEPROTO\PARSEMODE $PARSEMODE = \DANOG\MADELINEPROTO\PARSEMODE::TEXT, ?CALLABLE $CALLBACK = NULL, ?STRING $FILENAME = NULL, (INTEGER|NULL) $TTL = NULL, BOOLEAN $SPOILER = FALSE, (ARRAY|NULL) $REPLYMARKUP = NULL, (INTEGER|STRING|NULL) $SENDAS = NULL, (INTEGER|NULL) $SCHEDULEDATE = NULL, BOOLEAN $SILENT = FALSE, BOOLEAN $NOFORWARDS = FALSE, BOOLEAN $BACKGROUND = FALSE, BOOLEAN $CLEARDRAFT = FALSE, BOOLEAN $FORCERESEND = FALSE, ?\AMP\CANCELLATION $CANCELLATION = NULL): \DANOG\MADELINEPROTO\EVENTHANDLER\MESSAGE Reply a gif. Please use named arguments to call this method. Parameters: * $file: (\danog\MadelineProto\EventHandler\Message|\danog\MadelineProto\EventHandler\Media|\danog\MadelineProto\LocalFile|\danog\MadelineProto\RemoteUrl|\danog\MadelineProto\BotApiFileId|\Amp\ByteStream\ReadableStream) File to upload: can be a message to reuse media present in a message. * $thumb: (\danog\MadelineProto\EventHandler\Message|\danog\MadelineProto\EventHandler\Media|\danog\MadelineProto\LocalFile|\danog\MadelineProto\RemoteUrl|\danog\MadelineProto\BotApiFileId|\Amp\ByteStream\ReadableStream|null) Optional: Thumbnail to upload * $caption: string Caption of document * $parseMode: \danog\MadelineProto\ParseMode Text parse mode for the caption * $callback: ?callable * $fileName: ?string Optional file name, if absent will be extracted from the passed $file. * $ttl: (integer|null) Time to live * $spoiler: boolean Whether the message is a spoiler * $replyMarkup: (array|null) Keyboard information. * $sendAs: (integer|string|null) Peer to send the message as. * $scheduleDate: (integer|null) Schedule date. * $silent: boolean Whether to send the message silently, without triggering notifications. * $noForwards: boolean Whether to disable forwards for this message. * $background: boolean Send this message as background message * $clearDraft: boolean Clears the draft field * $forceResend: boolean Whether to forcefully resend the file, even if its type and name are the same. * $cancellation: ?\Amp\Cancellation Cancellation. SEE ALSO: * \danog\MadelineProto\EventHandler\Message: Represents an incoming or outgoing message. * \danog\MadelineProto\EventHandler\Media: Represents a generic media. * \danog\MadelineProto\LocalFile: Indicates a local file to upload. * \danog\MadelineProto\RemoteUrl: Indicates a remote URL to upload. * \danog\MadelineProto\BotApiFileId: Indicates a bot API file ID to upload using sendDocument, sendPhoto etc… * \Amp\ByteStream\ReadableStream * \danog\MadelineProto\ParseMode: Indicates a parsing mode for text. * \Amp\Cancellation REPLYAUDIO((\DANOG\MADELINEPROTO\EVENTHANDLER\MESSAGE|\DANOG\MADELINEPROTO\EVENTHANDLER\MEDIA|\DANOG\MADELINEPROTO\LOCALFILE|\DANOG\MADELINEPROTO\REMOTEURL|\DANOG\MADELINEPROTO\BOTAPIFILEID|\AMP\BYTESTREAM\READABLESTREAM) $FILE, (\DANOG\MADELINEPROTO\EVENTHANDLER\MESSAGE|\DANOG\MADELINEPROTO\EVENTHANDLER\MEDIA|\DANOG\MADELINEPROTO\LOCALFILE|\DANOG\MADELINEPROTO\REMOTEURL|\DANOG\MADELINEPROTO\BOTAPIFILEID|\AMP\BYTESTREAM\READABLESTREAM|NULL) $THUMB = NULL, STRING $CAPTION = '', \DANOG\MADELINEPROTO\PARSEMODE $PARSEMODE = \DANOG\MADELINEPROTO\PARSEMODE::TEXT, ?CALLABLE $CALLBACK = NULL, ?STRING $FILENAME = NULL, ?STRING $MIMETYPE = NULL, (INTEGER|NULL) $DURATION = NULL, (STRING|NULL) $TITLE = NULL, (STRING|NULL) $PERFORMER = NULL, ?INT $TTL = NULL, (ARRAY|NULL) $REPLYMARKUP = NULL, (INTEGER|STRING|NULL) $SENDAS = NULL, (INTEGER|NULL) $SCHEDULEDATE = NULL, BOOLEAN $SILENT = FALSE, BOOLEAN $NOFORWARDS = FALSE, BOOLEAN $BACKGROUND = FALSE, BOOLEAN $CLEARDRAFT = FALSE, BOOLEAN $FORCERESEND = FALSE, ?\AMP\CANCELLATION $CANCELLATION = NULL): \DANOG\MADELINEPROTO\EVENTHANDLER\MESSAGE Reply an audio. Please use named arguments to call this method. Parameters: * $file: (\danog\MadelineProto\EventHandler\Message|\danog\MadelineProto\EventHandler\Media|\danog\MadelineProto\LocalFile|\danog\MadelineProto\RemoteUrl|\danog\MadelineProto\BotApiFileId|\Amp\ByteStream\ReadableStream) File to upload: can be a message to reuse media present in a message. * $thumb: (\danog\MadelineProto\EventHandler\Message|\danog\MadelineProto\EventHandler\Media|\danog\MadelineProto\LocalFile|\danog\MadelineProto\RemoteUrl|\danog\MadelineProto\BotApiFileId|\Amp\ByteStream\ReadableStream|null) Optional: Thumbnail to upload * $caption: string Caption of document * $parseMode: \danog\MadelineProto\ParseMode Text parse mode for the caption * $callback: ?callable * $fileName: ?string Optional file name, if absent will be extracted from the passed $file. * $mimeType: ?string * $duration: (integer|null) Duration of the audio * $title: (string|null) Title of the audio * $performer: (string|null) Performer of the audio * $ttl: ?int * $replyMarkup: (array|null) Keyboard information. * $sendAs: (integer|string|null) Peer to send the message as. * $scheduleDate: (integer|null) Schedule date. * $silent: boolean Whether to send the message silently, without triggering notifications. * $noForwards: boolean Whether to disable forwards for this message. * $background: boolean Send this message as background message * $clearDraft: boolean Clears the draft field * $forceResend: boolean Whether to forcefully resend the file, even if its type and name are the same. * $cancellation: ?\Amp\Cancellation Cancellation. SEE ALSO: * \danog\MadelineProto\EventHandler\Message: Represents an incoming or outgoing message. * \danog\MadelineProto\EventHandler\Media: Represents a generic media. * \danog\MadelineProto\LocalFile: Indicates a local file to upload. * \danog\MadelineProto\RemoteUrl: Indicates a remote URL to upload. * \danog\MadelineProto\BotApiFileId: Indicates a bot API file ID to upload using sendDocument, sendPhoto etc… * \Amp\ByteStream\ReadableStream * \danog\MadelineProto\ParseMode: Indicates a parsing mode for text. * \Amp\Cancellation REPLYVOICE((\DANOG\MADELINEPROTO\EVENTHANDLER\MESSAGE|\DANOG\MADELINEPROTO\EVENTHANDLER\MEDIA|\DANOG\MADELINEPROTO\LOCALFILE|\DANOG\MADELINEPROTO\REMOTEURL|\DANOG\MADELINEPROTO\BOTAPIFILEID|\AMP\BYTESTREAM\READABLESTREAM) $FILE, STRING $CAPTION = '', \DANOG\MADELINEPROTO\PARSEMODE $PARSEMODE = \DANOG\MADELINEPROTO\PARSEMODE::TEXT, ?CALLABLE $CALLBACK = NULL, ?STRING $FILENAME = NULL, (INTEGER|NULL) $TTL = NULL, (INTEGER|NULL) $DURATION = NULL, (ARRAY|NULL) $WAVEFORM = NULL, (ARRAY|NULL) $REPLYMARKUP = NULL, (INTEGER|STRING|NULL) $SENDAS = NULL, (INTEGER|NULL) $SCHEDULEDATE = NULL, BOOLEAN $SILENT = FALSE, BOOLEAN $NOFORWARDS = FALSE, BOOLEAN $BACKGROUND = FALSE, BOOLEAN $CLEARDRAFT = FALSE, BOOLEAN $FORCERESEND = FALSE, ?\AMP\CANCELLATION $CANCELLATION = NULL): \DANOG\MADELINEPROTO\EVENTHANDLER\MESSAGE Reply a voice. Please use named arguments to call this method. Parameters: * $file: (\danog\MadelineProto\EventHandler\Message|\danog\MadelineProto\EventHandler\Media|\danog\MadelineProto\LocalFile|\danog\MadelineProto\RemoteUrl|\danog\MadelineProto\BotApiFileId|\Amp\ByteStream\ReadableStream) File to upload: can be a message to reuse media present in a message. * $caption: string Caption of document * $parseMode: \danog\MadelineProto\ParseMode Text parse mode for the caption * $callback: ?callable * $fileName: ?string Optional file name, if absent will be extracted from the passed $file. * $ttl: (integer|null) Time to live * $duration: (integer|null) Duration of the voice * $waveform: (array|null) Waveform of the voice * $replyMarkup: (array|null) Keyboard information. * $sendAs: (integer|string|null) Peer to send the message as. * $scheduleDate: (integer|null) Schedule date. * $silent: boolean Whether to send the message silently, without triggering notifications. * $noForwards: boolean Whether to disable forwards for this message. * $background: boolean Send this message as background message * $clearDraft: boolean Clears the draft field * $forceResend: boolean Whether to forcefully resend the file, even if its type and name are the same. * $cancellation: ?\Amp\Cancellation Cancellation. SEE ALSO: * \danog\MadelineProto\EventHandler\Message: Represents an incoming or outgoing message. * \danog\MadelineProto\EventHandler\Media: Represents a generic media. * \danog\MadelineProto\LocalFile: Indicates a local file to upload. * \danog\MadelineProto\RemoteUrl: Indicates a remote URL to upload. * \danog\MadelineProto\BotApiFileId: Indicates a bot API file ID to upload using sendDocument, sendPhoto etc… * \Amp\ByteStream\ReadableStream * \danog\MadelineProto\ParseMode: Indicates a parsing mode for text. * \Amp\Cancellation REPLYPHOTO((\DANOG\MADELINEPROTO\EVENTHANDLER\MESSAGE|\DANOG\MADELINEPROTO\EVENTHANDLER\MEDIA|\DANOG\MADELINEPROTO\LOCALFILE|\DANOG\MADELINEPROTO\REMOTEURL|\DANOG\MADELINEPROTO\BOTAPIFILEID|\AMP\BYTESTREAM\READABLESTREAM) $FILE, STRING $CAPTION = '', \DANOG\MADELINEPROTO\PARSEMODE $PARSEMODE = \DANOG\MADELINEPROTO\PARSEMODE::TEXT, ?CALLABLE $CALLBACK = NULL, ?STRING $FILENAME = NULL, ?INT $TTL = NULL, BOOL $SPOILER = FALSE, (ARRAY|NULL) $REPLYMARKUP = NULL, (INTEGER|NULL) $SENDAS = NULL, (INTEGER|NULL) $SCHEDULEDATE = NULL, BOOLEAN $SILENT = FALSE, BOOL $NOFORWARDS = FALSE, BOOLEAN $BACKGROUND = FALSE, BOOLEAN $CLEARDRAFT = FALSE, BOOLEAN $UPDATESTICKERSETSORDER = FALSE, BOOLEAN $FORCERESEND = FALSE, \AMP\CANCELLATION $CANCELLATION = NULL): \DANOG\MADELINEPROTO\EVENTHANDLER\MESSAGE Reply a photo. Please use named arguments to call this method. Parameters: * $file: (\danog\MadelineProto\EventHandler\Message|\danog\MadelineProto\EventHandler\Media|\danog\MadelineProto\LocalFile|\danog\MadelineProto\RemoteUrl|\danog\MadelineProto\BotApiFileId|\Amp\ByteStream\ReadableStream) File to upload: can be a message to reuse media present in a message. * $caption: string Caption of document * $parseMode: \danog\MadelineProto\ParseMode Text parse mode for the caption * $callback: ?callable * $fileName: ?string Optional file name, if absent will be extracted from the passed $file. * $ttl: ?int * $spoiler: bool * $replyMarkup: (array|null) Keyboard information. * $sendAs: (integer|null) Peer to send the message as. * $scheduleDate: (integer|null) Schedule date. * $silent: boolean Whether to send the message silently, without triggering notifications. * $noForwards: bool * $background: boolean Send this message as background message * $clearDraft: boolean Clears the draft field * $updateStickersetsOrder: boolean Whether to move used stickersets to top * $forceResend: boolean Whether to forcefully resend the file, even if its type and name are the same. * $cancellation: \Amp\Cancellation Cancellation. SEE ALSO: * \danog\MadelineProto\EventHandler\Message: Represents an incoming or outgoing message. * \danog\MadelineProto\EventHandler\Media: Represents a generic media. * \danog\MadelineProto\LocalFile: Indicates a local file to upload. * \danog\MadelineProto\RemoteUrl: Indicates a remote URL to upload. * \danog\MadelineProto\BotApiFileId: Indicates a bot API file ID to upload using sendDocument, sendPhoto etc… * \Amp\ByteStream\ReadableStream * \danog\MadelineProto\ParseMode: Indicates a parsing mode for text. * \Amp\Cancellation REPLYSTICKER((\DANOG\MADELINEPROTO\EVENTHANDLER\MESSAGE|\DANOG\MADELINEPROTO\EVENTHANDLER\MEDIA|\DANOG\MADELINEPROTO\LOCALFILE|\DANOG\MADELINEPROTO\REMOTEURL|\DANOG\MADELINEPROTO\BOTAPIFILEID|\AMP\BYTESTREAM\READABLESTREAM) $FILE, STRING $MIMETYPE, STRING $EMOJI = '', ?CALLABLE $CALLBACK = NULL, ?STRING $FILENAME = NULL, ?INT $TTL = NULL, (ARRAY|NULL) $REPLYMARKUP = NULL, (INTEGER|NULL) $SENDAS = NULL, (INTEGER|NULL) $SCHEDULEDATE = NULL, BOOLEAN $SILENT = FALSE, BOOLEAN $NOFORWARDS = FALSE, BOOLEAN $BACKGROUND = FALSE, BOOLEAN $CLEARDRAFT = FALSE, BOOLEAN $UPDATESTICKERSETSORDER = FALSE, BOOLEAN $FORCERESEND = FALSE, \AMP\CANCELLATION $CANCELLATION = NULL): \DANOG\MADELINEPROTO\EVENTHANDLER\MESSAGE Reply a sticker. Please use named arguments to call this method. Parameters: * $file: (\danog\MadelineProto\EventHandler\Message|\danog\MadelineProto\EventHandler\Media|\danog\MadelineProto\LocalFile|\danog\MadelineProto\RemoteUrl|\danog\MadelineProto\BotApiFileId|\Amp\ByteStream\ReadableStream) File to upload: can be a message to reuse media present in a message. * $mimeType: string * $emoji: string * $callback: ?callable * $fileName: ?string Optional file name, if absent will be extracted from the passed $file. * $ttl: ?int * $replyMarkup: (array|null) Keyboard information. * $sendAs: (integer|null) Peer to send the message as. * $scheduleDate: (integer|null) Schedule date. * $silent: boolean Whether to send the message silently, without triggering notifications. * $noForwards: boolean Whether to disable forwards for this message. * $background: boolean Send this message as background message * $clearDraft: boolean Clears the draft field * $updateStickersetsOrder: boolean Whether to move used stickersets to top * $forceResend: boolean Whether to forcefully resend the file, even if its type and name are the same. * $cancellation: \Amp\Cancellation Cancellation. SEE ALSO: * \danog\MadelineProto\EventHandler\Message: Represents an incoming or outgoing message. * \danog\MadelineProto\EventHandler\Media: Represents a generic media. * \danog\MadelineProto\LocalFile: Indicates a local file to upload. * \danog\MadelineProto\RemoteUrl: Indicates a remote URL to upload. * \danog\MadelineProto\BotApiFileId: Indicates a bot API file ID to upload using sendDocument, sendPhoto etc… * \Amp\ByteStream\ReadableStream * \Amp\Cancellation SENDTEXT(STRING $MESSAGE, \DANOG\MADELINEPROTO\PARSEMODE $PARSEMODE = \DANOG\MADELINEPROTO\PARSEMODE::TEXT, (ARRAY|NULL) $REPLYMARKUP = NULL, (INTEGER|STRING|NULL) $SENDAS = NULL, (INTEGER|NULL) $SCHEDULEDATE = NULL, BOOLEAN $NOWEBPAGE = FALSE, BOOLEAN $SILENT = FALSE, BOOLEAN $NOFORWARDS = FALSE, BOOLEAN $BACKGROUND = FALSE, BOOLEAN $CLEARDRAFT = FALSE, BOOLEAN $UPDATESTICKERSETSORDER = FALSE, ?\AMP\CANCELLATION $CANCELLATION = NULL): \DANOG\MADELINEPROTO\EVENTHANDLER\MESSAGE Send a text message. Parameters: * $message: string Message to send * $parseMode: \danog\MadelineProto\ParseMode Parse mode * $replyMarkup: (array|null) Keyboard information. * $sendAs: (integer|string|null) Peer to send the message as. * $scheduleDate: (integer|null) Schedule date. * $noWebpage: boolean Set this flag to disable generation of the webpage preview * $silent: boolean Whether to send the message silently, without triggering notifications. * $noForwards: boolean Only for bots, disallows further re-forwarding and saving of the messages, even if the destination chat doesn’t have content protection enabled * $background: boolean Send this message as background message * $clearDraft: boolean Clears the draft field * $updateStickersetsOrder: boolean Whether to move used stickersets to top * $cancellation: ?\Amp\Cancellation SEE ALSO: * \danog\MadelineProto\ParseMode: Indicates a parsing mode for text. * \Amp\Cancellation * \danog\MadelineProto\EventHandler\Message: Represents an incoming or outgoing message. BLOCK(): BOOL Adds the user to the blacklist. UNBLOCK(): BOOL Deletes the user from the blacklist. GETSTORIES(): LIST<\DANOG\MADELINEPROTO\EVENTHANDLER\ABSTRACTSTORY> Get user stories. SEE ALSO: * \danog\MadelineProto\EventHandler\AbstractStory: Represents a Telegram Story. SETACTION(\DANOG\MADELINEPROTO\EVENTHANDLER\ACTION $ACTION = \DANOG\MADELINEPROTO\EVENTHANDLER\ACTION\TYPING::__SET_STATE(ARRAY(]]): BOOL Sends a current user typing event (see SendMessageAction for all event types) to a conversation partner or group. Parameters: * $action: \danog\MadelineProto\EventHandler\Action SEE ALSO: * \danog\MadelineProto\EventHandler\Action: In-progress actions. READ(BOOL $READALL = FALSE): BOOLEAN Mark selected message as read. Parameters: * $readAll: bool Return value: if set, read all messages in current chat. ENABLETTL(INT<1, MAX> $SECONDS = 86400): \DANOG\MADELINEPROTO\EVENTHANDLER\MESSAGE\SERVICE\DIALOGSETTTL Set maximum Time-To-Live of all messages in the specified chat. Parameters: * $seconds: int<1, max> Automatically delete all messages sent in the chat after this many seconds SEE ALSO: * max * \danog\MadelineProto\EventHandler\Message\Service\DialogSetTTL: The Time-To-Live of messages in this chat was changed. DISABLETTL(): \DANOG\MADELINEPROTO\EVENTHANDLER\MESSAGE\SERVICE\DIALOGSETTTL Disable Time-To-Live of all messages in the specified chat. SEE ALSO: * \danog\MadelineProto\EventHandler\Message\Service\DialogSetTTL: The Time-To-Live of messages in this chat was changed. ENABLEAUTOTRANSLATE(): BOOL Show the real-time chat translation popup for a certain chat. DISABLEAUTOTRANSLATE(): BOOL Hide the real-time chat translation popup for a certain chat. -------------------------------------------------------------------------------- Generated by danog/phpdoc -------------------------------------------------------------------------------- Edit this page on GitHub