Class StopPollMethod Use this method to stop a poll which was sent by the bot.

On success, the stopped Poll with the final results is returned.

see
package Default

 Methods

create()

create(string $chatId, integer $messageId, array|null $data = null) : \TgBotApi\BotApiBase\Method\StopPollMethod
Static

Parameters

$chatId

string

$messageId

integer

$data

arraynull

Returns

\TgBotApi\BotApiBase\Method\StopPollMethod

fill()

fill(array $data, array $forbidden = array()
Inherited

Parameters

$data

array

$forbidden

array

Exceptions

\TgBotApi\BotApiBase\Exception\BadArgumentException

 Properties

 

Unique identifier for the target chat or username of the target channel (in the format @channelusername).

$chatId : integer | string

Default

 

Identifier of a message.

$messageId : integer

Default

 

Optional. Additional interface options. A JSON-serialized object for an inline keyboard, custom reply keyboard, instructions to remove reply keyboard or to force a reply from the user.

$replyMarkup : \TgBotApi\BotApiBase\Type\InlineKeyboardMarkupType

Default