Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

add support for forum topic (Bot API 6.3) #385

Merged
merged 10 commits into from
Mar 6, 2023
Merged

add support for forum topic (Bot API 6.3) #385

merged 10 commits into from
Mar 6, 2023

Conversation

bernard-ng
Copy link
Contributor

- Added the parameter secret_token to the method setWebhook.
- As previously announced, only HTTPS links are now allowed in login_url inline keyboard buttons.
- Added the field added_to_attachment_menu to the class User.
- Bots integrated in the attachment menu can now be used in groups, supergroups and channels.
- Added support for t.me links that can be used to select the chat in which the attachment menu with the bot will be opened.
The maximum value of the field file_size in the classes Animation, Audio, Document, Video, Voice, and File can no longer be stored in a signed 32-bit integer type. This change is necessary to support 4GB files uploaded by premium accounts.
Added the field is_premium to the class User.
Added the field premium_animation to the class Sticker.
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 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.
@vtsykun
Copy link

vtsykun commented May 8, 2023

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"

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

3 participants