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

bot api update #69

Merged
merged 1 commit into from
Jan 3, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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