MadelineProtoDocs/docs/API_docs/constructors/channels.sendAsPeers.md
2024-05-01 14:53:46 +02:00

1.1 KiB

title description nav_exclude image redirect_from
channels.sendAsPeers A list of peers that can be used to send messages in a specific group true https://docs.madelineproto.xyz/favicons/android-chrome-256x256.png /API_docs/constructors/channels_sendAsPeers.html

Constructor: channels.sendAsPeers

Back to constructors index

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

Attributes:

Name Type Required Description
peers Array of SendAsPeer Yes Peers that can be used to send messages to the group
chats Array of Chat Yes Mentioned chats
users Array of User Yes Mentioned users

Type: channels.SendAsPeers

Example:

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