Search
Preparing search index...
The search index is not available
telegram
Options
All
Public
Public/Protected
All
Inherited
Menu
telegram
custom
NewMessageEvent
Class NewMessageEvent
Hierarchy
EventCommon
NewMessageEvent
EditedMessageEvent
Index
Properties
message
original
Update
_event
Name
_entities
_message
Id
_chat
Peer
_input
Chat
_chat
_broadcast
_client
Constructors
constructor
Methods
_set
Client
[custom]
init
Chat
Class
get
Chat
get
Input
Chat
_refetch
Chat
Accessors
client
chat
input
Chat
chat
Id
is
Private
is
Group
is
Channel
Properties
message
message
:
Message
original
Update
original
Update
:
UpdatesTooLong
&
{
_entities
?:
Map
<
number
,
Entity
>
}
&
UpdateShortMessage
&
{
_entities
?:
Map
<
number
,
Entity
>
}
&
UpdateShortChatMessage
&
{
_entities
?:
Map
<
number
,
Entity
>
}
&
UpdateShort
&
{
_entities
?:
Map
<
number
,
Entity
>
}
&
UpdatesCombined
&
{
_entities
?:
Map
<
number
,
Entity
>
}
&
Updates
&
{
_entities
?:
Map
<
number
,
Entity
>
}
&
UpdateShortSentMessage
&
{
_entities
?:
Map
<
number
,
Entity
>
}
&
UpdateNewMessage
&
{
_entities
?:
Map
<
number
,
Entity
>
}
&
UpdateMessageID
&
{
_entities
?:
Map
<
number
,
Entity
>
}
&
UpdateDeleteMessages
&
{
_entities
?:
Map
<
number
,
Entity
>
}
&
UpdateUserTyping
&
{
_entities
?:
Map
<
number
,
Entity
>
}
&
UpdateChatUserTyping
&
{
_entities
?:
Map
<
number
,
Entity
>
}
&
UpdateChatParticipants
&
{
_entities
?:
Map
<
number
,
Entity
>
}
&
UpdateUserStatus
&
{
_entities
?:
Map
<
number
,
Entity
>
}
&
UpdateUserName
&
{
_entities
?:
Map
<
number
,
Entity
>
}
&
UpdateNewAuthorization
&
{
_entities
?:
Map
<
number
,
Entity
>
}
&
UpdateNewEncryptedMessage
&
{
_entities
?:
Map
<
number
,
Entity
>
}
&
UpdateEncryptedChatTyping
&
{
_entities
?:
Map
<
number
,
Entity
>
}
&
UpdateEncryption
&
{
_entities
?:
Map
<
number
,
Entity
>
}
&
UpdateEncryptedMessagesRead
&
{
_entities
?:
Map
<
number
,
Entity
>
}
&
UpdateChatParticipantAdd
&
{
_entities
?:
Map
<
number
,
Entity
>
}
&
UpdateChatParticipantDelete
&
{
_entities
?:
Map
<
number
,
Entity
>
}
&
UpdateDcOptions
&
{
_entities
?:
Map
<
number
,
Entity
>
}
&
Api
.
UpdateNotifySettings
&
{
_entities
?:
Map
<
number
,
Entity
>
}
&
UpdateServiceNotification
&
{
_entities
?:
Map
<
number
,
Entity
>
}
&
UpdatePrivacy
&
{
_entities
?:
Map
<
number
,
Entity
>
}
&
UpdateUserPhone
&
{
_entities
?:
Map
<
number
,
Entity
>
}
&
UpdateReadHistoryInbox
&
{
_entities
?:
Map
<
number
,
Entity
>
}
&
UpdateReadHistoryOutbox
&
{
_entities
?:
Map
<
number
,
Entity
>
}
&
UpdateWebPage
&
{
_entities
?:
Map
<
number
,
Entity
>
}
&
UpdateReadMessagesContents
&
{
_entities
?:
Map
<
number
,
Entity
>
}
&
UpdateChannelTooLong
&
{
_entities
?:
Map
<
number
,
Entity
>
}
&
UpdateChannel
&
{
_entities
?:
Map
<
number
,
Entity
>
}
&
UpdateNewChannelMessage
&
{
_entities
?:
Map
<
number
,
Entity
>
}
&
UpdateReadChannelInbox
&
{
_entities
?:
Map
<
number
,
Entity
>
}
&
UpdateDeleteChannelMessages
&
{
_entities
?:
Map
<
number
,
Entity
>
}
&
UpdateChannelMessageViews
&
{
_entities
?:
Map
<
number
,
Entity
>
}
&
UpdateChatParticipantAdmin
&
{
_entities
?:
Map
<
number
,
Entity
>
}
&
UpdateNewStickerSet
&
{
_entities
?:
Map
<
number
,
Entity
>
}
&
UpdateStickerSetsOrder
&
{
_entities
?:
Map
<
number
,
Entity
>
}
&
UpdateStickerSets
&
{
_entities
?:
Map
<
number
,
Entity
>
}
&
UpdateSavedGifs
&
{
_entities
?:
Map
<
number
,
Entity
>
}
&
UpdateBotInlineQuery
&
{
_entities
?:
Map
<
number
,
Entity
>
}
&
UpdateBotInlineSend
&
{
_entities
?:
Map
<
number
,
Entity
>
}
&
UpdateEditChannelMessage
&
{
_entities
?:
Map
<
number
,
Entity
>
}
&
UpdateBotCallbackQuery
&
{
_entities
?:
Map
<
number
,
Entity
>
}
&
UpdateEditMessage
&
{
_entities
?:
Map
<
number
,
Entity
>
}
&
UpdateInlineBotCallbackQuery
&
{
_entities
?:
Map
<
number
,
Entity
>
}
&
UpdateReadChannelOutbox
&
{
_entities
?:
Map
<
number
,
Entity
>
}
&
UpdateDraftMessage
&
{
_entities
?:
Map
<
number
,
Entity
>
}
&
UpdateReadFeaturedStickers
&
{
_entities
?:
Map
<
number
,
Entity
>
}
&
UpdateRecentStickers
&
{
_entities
?:
Map
<
number
,
Entity
>
}
&
UpdateConfig
&
{
_entities
?:
Map
<
number
,
Entity
>
}
&
UpdatePtsChanged
&
{
_entities
?:
Map
<
number
,
Entity
>
}
&
UpdateChannelWebPage
&
{
_entities
?:
Map
<
number
,
Entity
>
}
&
UpdateDialogPinned
&
{
_entities
?:
Map
<
number
,
Entity
>
}
&
UpdatePinnedDialogs
&
{
_entities
?:
Map
<
number
,
Entity
>
}
&
UpdateBotWebhookJSON
&
{
_entities
?:
Map
<
number
,
Entity
>
}
&
UpdateBotWebhookJSONQuery
&
{
_entities
?:
Map
<
number
,
Entity
>
}
&
UpdateBotShippingQuery
&
{
_entities
?:
Map
<
number
,
Entity
>
}
&
UpdateBotPrecheckoutQuery
&
{
_entities
?:
Map
<
number
,
Entity
>
}
&
UpdatePhoneCall
&
{
_entities
?:
Map
<
number
,
Entity
>
}
&
UpdateLangPackTooLong
&
{
_entities
?:
Map
<
number
,
Entity
>
}
&
UpdateLangPack
&
{
_entities
?:
Map
<
number
,
Entity
>
}
&
UpdateFavedStickers
&
{
_entities
?:
Map
<
number
,
Entity
>
}
&
UpdateChannelReadMessagesContents
&
{
_entities
?:
Map
<
number
,
Entity
>
}
&
UpdateContactsReset
&
{
_entities
?:
Map
<
number
,
Entity
>
}
&
UpdateChannelAvailableMessages
&
{
_entities
?:
Map
<
number
,
Entity
>
}
&
UpdateDialogUnreadMark
&
{
_entities
?:
Map
<
number
,
Entity
>
}
&
UpdateMessagePoll
&
{
_entities
?:
Map
<
number
,
Entity
>
}
&
UpdateChatDefaultBannedRights
&
{
_entities
?:
Map
<
number
,
Entity
>
}
&
UpdateFolderPeers
&
{
_entities
?:
Map
<
number
,
Entity
>
}
&
UpdatePeerSettings
&
{
_entities
?:
Map
<
number
,
Entity
>
}
&
UpdatePeerLocated
&
{
_entities
?:
Map
<
number
,
Entity
>
}
&
UpdateNewScheduledMessage
&
{
_entities
?:
Map
<
number
,
Entity
>
}
&
UpdateDeleteScheduledMessages
&
{
_entities
?:
Map
<
number
,
Entity
>
}
&
Api
.
UpdateTheme
&
{
_entities
?:
Map
<
number
,
Entity
>
}
&
UpdateGeoLiveViewed
&
{
_entities
?:
Map
<
number
,
Entity
>
}
&
UpdateLoginToken
&
{
_entities
?:
Map
<
number
,
Entity
>
}
&
UpdateMessagePollVote
&
{
_entities
?:
Map
<
number
,
Entity
>
}
&
Api
.
UpdateDialogFilter
&
{
_entities
?:
Map
<
number
,
Entity
>
}
&
UpdateDialogFilterOrder
&
{
_entities
?:
Map
<
number
,
Entity
>
}
&
UpdateDialogFilters
&
{
_entities
?:
Map
<
number
,
Entity
>
}
&
UpdatePhoneCallSignalingData
&
{
_entities
?:
Map
<
number
,
Entity
>
}
&
UpdateChannelMessageForwards
&
{
_entities
?:
Map
<
number
,
Entity
>
}
&
UpdateReadChannelDiscussionInbox
&
{
_entities
?:
Map
<
number
,
Entity
>
}
&
UpdateReadChannelDiscussionOutbox
&
{
_entities
?:
Map
<
number
,
Entity
>
}
&
UpdatePeerBlocked
&
{
_entities
?:
Map
<
number
,
Entity
>
}
&
UpdateChannelUserTyping
&
{
_entities
?:
Map
<
number
,
Entity
>
}
&
UpdatePinnedMessages
&
{
_entities
?:
Map
<
number
,
Entity
>
}
&
UpdatePinnedChannelMessages
&
{
_entities
?:
Map
<
number
,
Entity
>
}
&
UpdateChat
&
{
_entities
?:
Map
<
number
,
Entity
>
}
&
UpdateGroupCallParticipants
&
{
_entities
?:
Map
<
number
,
Entity
>
}
&
UpdateGroupCall
&
{
_entities
?:
Map
<
number
,
Entity
>
}
&
UpdatePeerHistoryTTL
&
{
_entities
?:
Map
<
number
,
Entity
>
}
&
UpdateChatParticipant
&
{
_entities
?:
Map
<
number
,
Entity
>
}
&
UpdateChannelParticipant
&
{
_entities
?:
Map
<
number
,
Entity
>
}
&
UpdateBotStopped
&
{
_entities
?:
Map
<
number
,
Entity
>
}
&
UpdateGroupCallConnection
&
{
_entities
?:
Map
<
number
,
Entity
>
}
&
UpdateBotCommands
&
{
_entities
?:
Map
<
number
,
Entity
>
}
&
UpdatePendingJoinRequests
&
{
_entities
?:
Map
<
number
,
Entity
>
}
&
UpdateBotChatInviteRequester
&
{
_entities
?:
Map
<
number
,
Entity
>
}
&
UpdateMessageReactions
&
{
_entities
?:
Map
<
number
,
Entity
>
}
&
UpdateAttachMenuBots
&
{
_entities
?:
Map
<
number
,
Entity
>
}
&
UpdateWebViewResultSent
&
{
_entities
?:
Map
<
number
,
Entity
>
}
&
UpdateBotMenuButton
&
{
_entities
?:
Map
<
number
,
Entity
>
}
&
UpdateSavedRingtones
&
{
_entities
?:
Map
<
number
,
Entity
>
}
&
UpdateTranscribedAudio
&
{
_entities
?:
Map
<
number
,
Entity
>
}
&
UpdateReadFeaturedEmojiStickers
&
{
_entities
?:
Map
<
number
,
Entity
>
}
&
UpdateUserEmojiStatus
&
{
_entities
?:
Map
<
number
,
Entity
>
}
&
UpdateRecentEmojiStatuses
&
{
_entities
?:
Map
<
number
,
Entity
>
}
&
UpdateRecentReactions
&
{
_entities
?:
Map
<
number
,
Entity
>
}
&
UpdateMoveStickerSetToTop
&
{
_entities
?:
Map
<
number
,
Entity
>
}
&
UpdateMessageExtendedMedia
&
{
_entities
?:
Map
<
number
,
Entity
>
}
&
UpdateChannelPinnedTopic
&
{
_entities
?:
Map
<
number
,
Entity
>
}
&
UpdateChannelPinnedTopics
&
{
_entities
?:
Map
<
number
,
Entity
>
}
&
UpdateUser
&
{
_entities
?:
Map
<
number
,
Entity
>
}
&
UpdateAutoSaveSettings
&
{
_entities
?:
Map
<
number
,
Entity
>
}
&
UpdateGroupInvitePrivacyForbidden
&
{
_entities
?:
Map
<
number
,
Entity
>
}
&
UpdateStory
&
{
_entities
?:
Map
<
number
,
Entity
>
}
&
UpdateReadStories
&
{
_entities
?:
Map
<
number
,
Entity
>
}
&
UpdateStoryID
&
{
_entities
?:
Map
<
number
,
Entity
>
}
&
UpdateStoriesStealthMode
&
{
_entities
?:
Map
<
number
,
Entity
>
}
&
UpdateSentStoryReaction
&
{
_entities
?:
Map
<
number
,
Entity
>
}
&
UpdateBotChatBoost
&
{
_entities
?:
Map
<
number
,
Entity
>
}
&
UpdateChannelViewForumAsMessages
&
{
_entities
?:
Map
<
number
,
Entity
>
}
&
UpdatePeerWallpaper
&
{
_entities
?:
Map
<
number
,
Entity
>
}
&
UpdateBotMessageReaction
&
{
_entities
?:
Map
<
number
,
Entity
>
}
&
UpdateBotMessageReactions
&
{
_entities
?:
Map
<
number
,
Entity
>
}
&
UpdateSavedDialogPinned
&
{
_entities
?:
Map
<
number
,
Entity
>
}
&
UpdatePinnedSavedDialogs
&
{
_entities
?:
Map
<
number
,
Entity
>
}
&
UpdateSavedReactionTags
&
{
_entities
?:
Map
<
number
,
Entity
>
}
_event
Name
_event
Name
:
string
= "Event"
_entities
_entities
:
Map
<
string
,
Entity
>
Optional
_message
Id
_message
Id
?:
number
Optional
_chat
Peer
_chat
Peer
?:
EntityLike
Optional
_input
Chat
_input
Chat
?:
EntityLike
Optional
_chat
_chat
?:
Entity
Optional
_broadcast
_broadcast
?:
boolean
Optional
_client
_client
?:
TelegramClient
Constructors
constructor
new
New
Message
Event
(
message
:
Message
, originalUpdate
:
TypeUpdates
|
TypeUpdate
)
:
NewMessageEvent
Parameters
message:
Message
originalUpdate:
TypeUpdates
|
TypeUpdate
Returns
NewMessageEvent
Methods
_set
Client
_set
Client
(
client
:
TelegramClient
)
:
void
Parameters
client:
TelegramClient
Returns
void
[custom]
[custom]
(
)
:
{}
Returns
{}
[
key:
string
]:
any
Static
init
Chat
Class
init
Chat
Class
(
c
:
any
, __namedParameters
:
ChatGetterConstructorParams
)
:
void
Parameters
c:
any
__namedParameters:
ChatGetterConstructorParams
Returns
void
get
Chat
get
Chat
(
)
:
Promise
<
undefined
|
Entity
>
Returns
Promise
<
undefined
|
Entity
>
get
Input
Chat
get
Input
Chat
(
)
:
Promise
<
undefined
|
EntityLike
>
Returns
Promise
<
undefined
|
EntityLike
>
_refetch
Chat
_refetch
Chat
(
)
:
Promise
<
void
>
Returns
Promise
<
void
>
Accessors
client
get
client
(
)
:
undefined
|
TelegramClient
Returns
undefined
|
TelegramClient
chat
get
chat
(
)
:
undefined
|
Entity
Returns
undefined
|
Entity
input
Chat
get
inputChat
(
)
:
undefined
|
EntityLike
Returns
undefined
|
EntityLike
chat
Id
get
chatId
(
)
:
undefined
|
BigInteger
Returns
undefined
|
BigInteger
is
Private
get
isPrivate
(
)
:
undefined
|
boolean
Returns
undefined
|
boolean
is
Group
get
isGroup
(
)
:
undefined
|
boolean
Returns
undefined
|
boolean
is
Channel
get
isChannel
(
)
:
boolean
Returns
boolean
Exports
helpers
password
utils
client
errors
extensions
sessions
Api
tl
custom
New
Message
Event
message
original
Update
constructor
_set
Client
_event
Name
_entities
_message
Id
client
_chat
Peer
_input
Chat
_chat
_broadcast
_client
[custom]
init
Chat
Class
chat
get
Chat
input
Chat
get
Input
Chat
chat
Id
is
Private
is
Group
is
Channel
_refetch
Chat
Generated using
TypeDoc