Releases: telepath-php/telepath
Releases · telepath-php/telepath
Bot API 6.4
Changelog:
- Added more information to type-hints.
Bot API 6.4
Fixed typo:
- The spelling of the word "specified" was corrected.
Bot API 6.4
Additional to the changes in https://github.com/telepath-php/telepath/releases/tag/v0.7.0, Telegram changed a few comments, that we included for type-hinting:
- In the sendDocument method, change "photo" to "video".
- In the InputMediaAnimation class, change "photo" to "animation".
- In the InputMediaVideo class, change photo to video in two places: one is a comment and another is an argument name of has_spoiler property.
Bot API 6.4
Full compatibility to Bot API 6.4 from 30th December 2022.
- Added the field is_persistent to the class ReplyKeyboardMarkup, allowing to control when the keyboard is shown.
- Added the parameter has_spoiler to the methods sendPhoto, sendVideo, and sendAnimation.
- Added the field has_spoiler to the classes InputMediaPhoto, InputMediaVideo, and InputMediaAnimation.
- Added the field has_media_spoiler to the class Message.
- The parameters name and icon_custom_emoji_id of the method editForumTopic are now optional. If they are omitted, the existing values are kept.
- Added the classes ForumTopicEdited, GeneralForumTopicHidden, GeneralForumTopicUnhidden, and WriteAccessAllowed and the fields forum_topic_edited, general_forum_topic_hidden, general_forum_topic_unhidden, and write_access_allowed to the class Message.
- Added the methods editGeneralForumTopic, closeGeneralForumTopic, reopenGeneralForumTopic, hideGeneralForumTopic, unhideGeneralForumTopic for managing the General topic in forums.
- Added the parameter message_thread_id to the method sendChatAction for sending chat actions to a specific message thread or a forum topic.
- Added the field has_hidden_members to the class Chat. Note that the method getChatMember is only guaranteed to work if the bot is an administrator in the chat.
- Added the field has_aggressive_anti_spam_enabled to the class Chat.
- Added Web App events qrTextReceived and clipboardTextReceived.
- Added the field platform to the class WebApp.
- Added the methods showScanQrPopup, closeScanQrPopup, and readTextFromClipboard to the class WebApp.
- Added the parameter options to the method openLink of the class WebApp.
v0.6.0
Bot API 6.3
- 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.