Interface BotApiInterface.

package Default
inherited_from \TgBotApi\BotApiBase\BotApiAliasInterface

 Methods

call()

call(\TgBotApi\BotApiBase\Method\Interfaces\MethodInterface $method, string|null $type = null) : mixed

Parameters

$method

\TgBotApi\BotApiBase\Method\Interfaces\MethodInterface

$type

stringnull

Exceptions

\TgBotApi\BotApiBase\Exception\ResponseException

Returns

mixed

getAbsoluteFilePath()

getAbsoluteFilePath(\TgBotApi\BotApiBase\Type\FileType $file) : string

Parameters

$file

\TgBotApi\BotApiBase\Type\FileType

Returns

string

getChat()

getChat(\TgBotApi\BotApiBase\Method\GetChatMethod $method) : \TgBotApi\BotApiBase\Type\ChatType

Parameters

$method

\TgBotApi\BotApiBase\Method\GetChatMethod

Exceptions

\TgBotApi\BotApiBase\Exception\ResponseException

Returns

\TgBotApi\BotApiBase\Type\ChatType

getChatAdministrators()

getChatAdministrators(\TgBotApi\BotApiBase\Method\GetChatAdministratorsMethod $method) : array<mixed,\TgBotApi\BotApiBase\Type\ChatMemberType>

Parameters

$method

\TgBotApi\BotApiBase\Method\GetChatAdministratorsMethod

Exceptions

\TgBotApi\BotApiBase\Exception\ResponseException

Returns

array<mixed,\TgBotApi\BotApiBase\Type\ChatMemberType>

getChatMember()

getChatMember(\TgBotApi\BotApiBase\Method\GetChatMemberMethod $method) : \TgBotApi\BotApiBase\Type\ChatMemberType

Parameters

$method

\TgBotApi\BotApiBase\Method\GetChatMemberMethod

Exceptions

\TgBotApi\BotApiBase\Exception\ResponseException

Returns

\TgBotApi\BotApiBase\Type\ChatMemberType

getChatMembersCount()

getChatMembersCount(\TgBotApi\BotApiBase\Method\GetChatMembersCountMethod $method) : integer

Parameters

$method

\TgBotApi\BotApiBase\Method\GetChatMembersCountMethod

Exceptions

\TgBotApi\BotApiBase\Exception\ResponseException

Returns

integer

getFile()

getFile(\TgBotApi\BotApiBase\Method\GetFileMethod $method) : \TgBotApi\BotApiBase\Type\FileType

Parameters

$method

\TgBotApi\BotApiBase\Method\GetFileMethod

Exceptions

\TgBotApi\BotApiBase\Exception\ResponseException

Returns

\TgBotApi\BotApiBase\Type\FileType

getGameHighScores()

getGameHighScores(\TgBotApi\BotApiBase\Method\GetGameHighScoresMethod $method) : array<mixed,\TgBotApi\BotApiBase\Type\GameHighScoreType>

Parameters

$method

\TgBotApi\BotApiBase\Method\GetGameHighScoresMethod

Exceptions

\TgBotApi\BotApiBase\Exception\ResponseException

Returns

array<mixed,\TgBotApi\BotApiBase\Type\GameHighScoreType>

getMe()

getMe(\TgBotApi\BotApiBase\Method\GetMeMethod $method) : \TgBotApi\BotApiBase\Type\UserType

Parameters

$method

\TgBotApi\BotApiBase\Method\GetMeMethod

Exceptions

\TgBotApi\BotApiBase\Exception\ResponseException

Returns

\TgBotApi\BotApiBase\Type\UserType

getStickerSet()

getStickerSet(\TgBotApi\BotApiBase\Method\GetStickerSetMethod $method) : \TgBotApi\BotApiBase\Type\StickerSetType

Parameters

$method

\TgBotApi\BotApiBase\Method\GetStickerSetMethod

Exceptions

\TgBotApi\BotApiBase\Exception\ResponseException

Returns

\TgBotApi\BotApiBase\Type\StickerSetType

getUpdates()

getUpdates(\TgBotApi\BotApiBase\Method\GetUpdatesMethod $method) : array<mixed,\TgBotApi\BotApiBase\Type\UpdateType>

Parameters

$method

\TgBotApi\BotApiBase\Method\GetUpdatesMethod

Exceptions

\TgBotApi\BotApiBase\Exception\ResponseException

Returns

array<mixed,\TgBotApi\BotApiBase\Type\UpdateType>

getUserProfilePhotos()

getUserProfilePhotos(\TgBotApi\BotApiBase\Method\GetUserProfilePhotosMethod $method) : \TgBotApi\BotApiBase\Type\UserProfilePhotosType

Parameters

$method

\TgBotApi\BotApiBase\Method\GetUserProfilePhotosMethod

Exceptions

\TgBotApi\BotApiBase\Exception\ResponseException

Returns

\TgBotApi\BotApiBase\Type\UserProfilePhotosType

getWebhookInfo()

getWebhookInfo(\TgBotApi\BotApiBase\Method\GetWebhookInfoMethod $method) : \TgBotApi\BotApiBase\Type\WebhookInfoType

Parameters

$method

\TgBotApi\BotApiBase\Method\GetWebhookInfoMethod

Exceptions

\TgBotApi\BotApiBase\Exception\ResponseException

Returns

\TgBotApi\BotApiBase\Type\WebhookInfoType

sendChatAction()

sendChatAction(\TgBotApi\BotApiBase\Method\SendChatActionMethod $method) : boolean

Parameters

$method

\TgBotApi\BotApiBase\Method\SendChatActionMethod

Exceptions

\TgBotApi\BotApiBase\Exception\ResponseException

Returns

boolean

sendMediaGroup()

sendMediaGroup(\TgBotApi\BotApiBase\Method\SendMediaGroupMethod $method) : array<mixed,\TgBotApi\BotApiBase\Type\MessageType>

Parameters

$method

\TgBotApi\BotApiBase\Method\SendMediaGroupMethod

Exceptions

\TgBotApi\BotApiBase\Exception\ResponseException

Returns

array<mixed,\TgBotApi\BotApiBase\Type\MessageType>