MadelineProtoDocs/old_docs/API_docs_v18/constructors/updateNewChannelMessage.md
2020-06-16 17:50:25 +02:00

1.1 KiB

title description image
updateNewChannelMessage A new message was sent in a [channel/supergroup](https://core.telegram.org/api/channel) https://docs.madelineproto.xyz/favicons/android-chrome-256x256.png

Constructor: updateNewChannelMessage

Back to constructors index

A new message was sent in a channel/supergroup

Attributes:

Name Type Required Description
message Message Optional New message
pts int Yes Event count after generation
pts_count int Yes Number of events that were generated

Type: Update

Example:

$updateNewChannelMessage = ['_' => 'updateNewChannelMessage', 'message' => Message, 'pts' => int, 'pts_count' => int];

Or, if you're into Lua:

updateNewChannelMessage={_='updateNewChannelMessage', message=Message, pts=int, pts_count=int}