Sender
Table of Contents
Constants
- SOURCE_CALL_DOCUMENT = 'call-document'
- SOURCE_CALL_RECORDING = 'call-recording'
- SOURCE_DEFAULT = 'default'
Methods
- hasFileInLastMessages() : bool
- sendExistingFileToChat() : Result
- Send message with file from chat storage to chat
- sendFileToChat() : Result
- Upload file to chat storage and send message with it
Constants
SOURCE_CALL_DOCUMENT
public
mixed
SOURCE_CALL_DOCUMENT
= 'call-document'
SOURCE_CALL_RECORDING
public
mixed
SOURCE_CALL_RECORDING
= 'call-recording'
SOURCE_DEFAULT
public
mixed
SOURCE_DEFAULT
= 'default'
Methods
hasFileInLastMessages()
public
static hasFileInLastMessages(File $file, int $chatId[, int $messageInterval = 10 ]) : bool
Parameters
- $file : File
- $chatId : int
- $messageInterval : int = 10
Return values
boolsendExistingFileToChat()
Send message with file from chat storage to chat
public
static sendExistingFileToChat(File $file, int $chatId, string $text[, array<string|int, mixed> $params = [] ], int $userId) : Result
Parameters
- $file : File
- $chatId : int
- $text : string
- $params : array<string|int, mixed> = []
- $userId : int
Tags
Return values
ResultsendFileToChat()
Upload file to chat storage and send message with it
public
static sendFileToChat(File $file, int $chatId, string $text[, array<string|int, mixed> $params = [] ][, null $userId = null ][, string $fileSource = self::SOURCE_DEFAULT ]) : Result
Parameters
- $file : File
- $chatId : int
- $text : string
- $params : array<string|int, mixed> = []
- $userId : null = null
- $fileSource : string = self::SOURCE_DEFAULT