-
Notifications
You must be signed in to change notification settings - Fork 20
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
259 changed files
with
1,992 additions
and
751 deletions.
There are no files selected for viewing
Large diffs are not rendered by default.
Oops, something went wrong.
Large diffs are not rendered by default.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,15 @@ | ||
module TD::Types | ||
# Describes an animated representation of an emoji. | ||
# | ||
# @attr sticker [TD::Types::Sticker] Animated sticker for the emoji. | ||
# @attr color_replacements [Array<TD::Types::ColorReplacement>] List of colors to be replaced while the sticker is | ||
# rendered. | ||
# @attr sound [TD::Types::File, nil] File containing the sound to be played when the animated emoji is clicked if | ||
# any; may be null. | ||
# The sound is encoded with the Opus codec, and stored inside an OGG container. | ||
class AnimatedEmoji < Base | ||
attribute :sticker, TD::Types::Sticker | ||
attribute :color_replacements, TD::Types::Array.of(TD::Types::ColorReplacement) | ||
attribute :sound, TD::Types::File.optional.default(nil) | ||
end | ||
end |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,8 @@ | ||
module TD::Types | ||
# Describes a freeform gradient fill of a background. | ||
# | ||
# @attr colors [Array<Integer>] A list of 3 or 4 colors of the freeform gradients in the RGB24 format. | ||
class BackgroundFill::FreeformGradient < BackgroundFill | ||
attribute :colors, TD::Types::Array.of(TD::Types::Coercible::Integer) | ||
end | ||
end |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,16 @@ | ||
module TD::Types | ||
# Represents the scope to which bot commands are relevant. | ||
class BotCommandScope < Base | ||
%w[ | ||
default | ||
all_private_chats | ||
all_group_chats | ||
all_chat_administrators | ||
chat | ||
chat_administrators | ||
chat_member | ||
].each do |type| | ||
autoload TD::Types.camelize(type), "tdlib/types/bot_command_scope/#{type}" | ||
end | ||
end | ||
end |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,5 @@ | ||
module TD::Types | ||
# A scope covering all group and supergroup chat administrators. | ||
class BotCommandScope::AllChatAdministrators < BotCommandScope | ||
end | ||
end |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,5 @@ | ||
module TD::Types | ||
# A scope covering all group and supergroup chats. | ||
class BotCommandScope::AllGroupChats < BotCommandScope | ||
end | ||
end |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,5 @@ | ||
module TD::Types | ||
# A scope covering all private chats. | ||
class BotCommandScope::AllPrivateChats < BotCommandScope | ||
end | ||
end |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,8 @@ | ||
module TD::Types | ||
# A scope covering all members of a chat. | ||
# | ||
# @attr chat_id [Integer] Chat identifier. | ||
class BotCommandScope::Chat < BotCommandScope | ||
attribute :chat_id, TD::Types::Coercible::Integer | ||
end | ||
end |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,8 @@ | ||
module TD::Types | ||
# A scope covering all administrators of a chat. | ||
# | ||
# @attr chat_id [Integer] Chat identifier. | ||
class BotCommandScope::ChatAdministrators < BotCommandScope | ||
attribute :chat_id, TD::Types::Coercible::Integer | ||
end | ||
end |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,10 @@ | ||
module TD::Types | ||
# A scope covering a member of a chat. | ||
# | ||
# @attr chat_id [Integer] Chat identifier. | ||
# @attr user_id [Integer] User identifier. | ||
class BotCommandScope::ChatMember < BotCommandScope | ||
attribute :chat_id, TD::Types::Coercible::Integer | ||
attribute :user_id, TD::Types::Coercible::Integer | ||
end | ||
end |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,5 @@ | ||
module TD::Types | ||
# A scope covering all users. | ||
class BotCommandScope::Default < BotCommandScope | ||
end | ||
end |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,10 @@ | ||
module TD::Types | ||
# Contains a list of bot commands. | ||
# | ||
# @attr bot_user_id [Integer] Bot's user identifier. | ||
# @attr commands [Array<TD::Types::BotCommand>] List of bot commands. | ||
class BotCommands < Base | ||
attribute :bot_user_id, TD::Types::Coercible::Integer | ||
attribute :commands, TD::Types::Array.of(TD::Types::BotCommand) | ||
end | ||
end |
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,6 +1,6 @@ | ||
module TD::Types | ||
# The call was ended before the conversation started. | ||
# It was cancelled by the caller or missed by the other party. | ||
# It was canceled by the caller or missed by the other party. | ||
class CallDiscardReason::Missed < CallDiscardReason | ||
end | ||
end |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,5 +1,5 @@ | ||
module TD::Types | ||
# The user has cancelled the previous action. | ||
# The user has canceled the previous action. | ||
class ChatAction::Cancel < ChatAction | ||
end | ||
end |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,5 @@ | ||
module TD::Types | ||
# The user is picking a sticker to send. | ||
class ChatAction::ChoosingSticker < ChatAction | ||
end | ||
end |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,8 @@ | ||
module TD::Types | ||
# The user is watching animations sent by the other party by clicking on an animated emoji. | ||
# | ||
# @attr emoji [TD::Types::String] The animated emoji. | ||
class ChatAction::WatchingAnimations < ChatAction | ||
attribute :emoji, TD::Types::String | ||
end | ||
end |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
10 changes: 10 additions & 0 deletions
10
lib/tdlib/types/chat_event_action/member_joined_by_request.rb
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,10 @@ | ||
module TD::Types | ||
# A new member was accepted to the chat by an administrator. | ||
# | ||
# @attr approver_user_id [Integer] User identifier of the chat administrator, approved user join request. | ||
# @attr invite_link [TD::Types::ChatInviteLink, nil] Invite link used to join the chat; may be null. | ||
class ChatEventAction::MemberJoinedByRequest < ChatEventAction | ||
attribute :approver_user_id, TD::Types::Coercible::Integer | ||
attribute :invite_link, TD::Types::ChatInviteLink.optional.default(nil) | ||
end | ||
end |
Oops, something went wrong.