Link Search Menu Expand Document

Constructor: channels.sendAsPeers

Back to constructors index

A list of peers that can be used to send messages in a specific group

Attributes:

NameTypeRequiredDescription
peersArray of PeerYesPeers that can be used to send messages to the group
chatsArray of ChatYesMentioned chats
usersArray of UserYesMentioned users

Type: channels.SendAsPeers

Example:

$channels_sendAsPeers = ['_' => 'channels.sendAsPeers', 'peers' => [Peer, Peer], 'chats' => [Chat, Chat], 'users' => [User, User]];