class
TelegramBot::InputMediaPhoto
- TelegramBot::InputMediaPhoto
- TelegramBot::InputMedia
- Reference
- Object
Included Modules
- JSON::Serializable
Defined in:
telegram_bot/types/input_media_photo.crConstructors
- .new(pull : JSON::PullParser)
- .new(media : String | AttachedFile, *, caption : String | Nil = nil, parse_mode : String | Nil = nil, caption_entities : Array(MessageEntity) | Nil = nil, show_caption_above_media : Bool | Nil = nil, has_spoiler : Bool | Nil = nil)
- .new(*, __pull_for_json_serializable pull : JSON::PullParser)
Instance Method Summary
- #caption : String | Nil
- #caption=(caption : String | Nil)
- #caption_entities : Array(MessageEntity) | Nil
- #caption_entities=(caption_entities : Array(MessageEntity) | Nil)
- #collect_attachments(attachments : Hash(String, String | ::File)) : Nil
- #has_spoiler=(has_spoiler : Bool | Nil)
- #has_spoiler? : Bool | Nil
- #media : String | AttachedFile
- #media=(media : String | AttachedFile)
- #parse_mode : String | Nil
- #parse_mode=(parse_mode : String | Nil)
- #show_caption_above_media=(show_caption_above_media : Bool | Nil)
- #show_caption_above_media? : Bool | Nil
- #type : String
- #type=(type : String)
Instance methods inherited from class TelegramBot::InputMedia
to_json(json : JSON::Builder)
to_json
Constructor Detail
def self.new(media : String | AttachedFile, *, caption : String | Nil = nil, parse_mode : String | Nil = nil, caption_entities : Array(MessageEntity) | Nil = nil, show_caption_above_media : Bool | Nil = nil, has_spoiler : Bool | Nil = nil)
#