Skip to content

Commit

Permalink
bot api update (#69)
Browse files Browse the repository at this point in the history
Co-authored-by: Chris Watson <cawatson1993@gmail.com>
  • Loading branch information
github-actions[bot] and watzon committed Jan 3, 2024
1 parent 08717e7 commit de0c6d8
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 5 deletions.
2 changes: 1 addition & 1 deletion src/tourmaline/client/api.cr
Original file line number Diff line number Diff line change
Expand Up @@ -604,7 +604,7 @@ module Tourmaline
})
end

# Use this method to change the chosen reactions on a message. Service messages can't be reacted to. Automatically forwarded messages from a channel to its discussion group have the same available reactions as messages in the channel. In albums, bots must react to the first message. Returns True on success.
# Use this method to change the chosen reactions on a message. Service messages can't be reacted to. Automatically forwarded messages from a channel to its discussion group have the same available reactions as messages in the channel. Returns True on success.
def set_message_reaction(
chat_id : Int32 | Int64 | String,
message_id : Int32 | Int64,
Expand Down
8 changes: 4 additions & 4 deletions src/tourmaline/types/api.cr
Original file line number Diff line number Diff line change
Expand Up @@ -1927,11 +1927,11 @@ module Tourmaline
end
end

# This object represents one button of the reply keyboard. For simple text buttons, String can be used instead of this object to specify the button text. The optional fields web_app, request_user, request_chat, request_contact, request_location, and request_poll are mutually exclusive.
# This object represents one button of the reply keyboard. For simple text buttons, String can be used instead of this object to specify the button text. The optional fields web_app, request_users, request_chat, request_contact, request_location, and request_poll are mutually exclusive.
# Note: request_contact and request_location options will only work in Telegram versions released after 9 April, 2016. Older clients will display unsupported message.
# Note: request_poll option will only work in Telegram versions released after 23 January, 2020. Older clients will display unsupported message.
# Note: web_app option will only work in Telegram versions released after 16 April, 2022. Older clients will display unsupported message.
# Note: request_user and request_chat options will only work in Telegram versions released after 3 February, 2023. Older clients will display unsupported message.
# Note: request_users and request_chat options will only work in Telegram versions released after 3 February, 2023. Older clients will display unsupported message.
class KeyboardButton
include JSON::Serializable

Expand Down Expand Up @@ -2821,11 +2821,11 @@ module Tourmaline
property type : String

# Custom emoji identifier
property custom_emoji : String
property custom_emoji_id : String

def initialize(
@type,
@custom_emoji
@custom_emoji_id
)
end
end
Expand Down

0 comments on commit de0c6d8

Please sign in to comment.