Closed bernard-ng closed 1 year ago
This is BC in the patch release. New arguments $messageThreadId
must be added at the end
public function sendMessage(
$chatId,
$text,
$parseMode = null,
$disablePreview = false,
+ $messageThreadId = null,
$replyToMessageId = null,
$replyMarkup = null,
$disableNotification = false
) {
"Warning: Object of class TelegramBot\Api\Types\Inline\InlineKeyboardMarkup could not be converted to int"
Added support for Topics in Groups.
Added the field is_forum to the class Chat.
Added the fields is_topic_message and message_thread_id to the class Message to allow detection of messages belonging to a forum topic and their message thread identifier.
Added the classes ForumTopicCreated, ForumTopicClosed, and ForumTopicReopened and the fields forum_topic_created, forum_topic_closed, and forum_topic_reopened to the class Message. Note that service messages about forum topic creation can't be deleted with the deleteMessage method.
Added the field can_manage_topics to the classes ChatAdministratorRights, ChatPermissions, ChatMemberAdministrator, and ChatMemberRestricted.
Added the parameter can_manage_topics to the method promoteChatMember.
Added the methods createForumTopic, editForumTopic, closeForumTopic, reopenForumTopic, deleteForumTopic, unpinAllForumTopicMessages, and getForumTopicIconStickers for forum topic management.
Added the parameter message_thread_id to the methods sendMessage, sendPhoto, sendVideo, sendAnimation, sendAudio, sendDocument, sendSticker, sendVideoNote, sendVoice, sendLocation, sendVenue, sendContact, sendPoll, sendDice, sendInvoice, sendGame, sendMediaGroup, copyMessage, forwardMessage to support sending of messages to a forum topic.
Added support for Multiple Usernames via the field active_usernames in the class Chat.
Added the field emoji_status_custom_emoji_id to the class Chat.
Added the MessageEntity type “custom_emoji”.
Added the field custom_emoji_id to the class MessageEntity for “custom_emoji” entities.
Added the method getCustomEmojiStickers.
Added the fields type and custom_emoji_id to the class Sticker.
Added the field sticker_type to the class StickerSet, describing the type of stickers in the set. The field contains_masks has been removed from the documentation of the class StickerSet. The field is still returned in the object for backward compatibility, but new bots should use the field sticker_type instead.
Added the parameter sticker_type to the method createNewStickerSet. The parameter contains_masks has been removed from the documentation of the method createNewStickerSet. The parameter will still work for backward compatibility, but new bots should use the parameter sticker_type instead.