Module: Teleswagger
- Defined in:
- lib/teleswagger/version.rb,
lib/teleswagger.rb,
lib/teleswagger/api_error.rb,
lib/teleswagger/api_client.rb,
lib/teleswagger/models/chat.rb,
lib/teleswagger/models/file.rb,
lib/teleswagger/models/game.rb,
lib/teleswagger/models/user.rb,
lib/teleswagger/models/audio.rb,
lib/teleswagger/models/error.rb,
lib/teleswagger/models/venue.rb,
lib/teleswagger/models/video.rb,
lib/teleswagger/models/voice.rb,
lib/teleswagger/api/chats_api.rb,
lib/teleswagger/api/games_api.rb,
lib/teleswagger/api/users_api.rb,
lib/teleswagger/configuration.rb,
lib/teleswagger/models/update.rb,
lib/teleswagger/api/inline_api.rb,
lib/teleswagger/models/contact.rb,
lib/teleswagger/models/invoice.rb,
lib/teleswagger/models/message.rb,
lib/teleswagger/models/sticker.rb,
lib/teleswagger/api/updates_api.rb,
lib/teleswagger/models/document.rb,
lib/teleswagger/models/location.rb,
lib/teleswagger/api/messages_api.rb,
lib/teleswagger/api/payments_api.rb,
lib/teleswagger/api/stickers_api.rb,
lib/teleswagger/models/animation.rb,
lib/teleswagger/api/callbacks_api.rb,
lib/teleswagger/models/chat_photo.rb,
lib/teleswagger/models/order_info.rb,
lib/teleswagger/models/parse_mode.rb,
lib/teleswagger/models/photo_size.rb,
lib/teleswagger/models/video_note.rb,
lib/teleswagger/models/chat_member.rb,
lib/teleswagger/models/force_reply.rb,
lib/teleswagger/models/inline_type.rb,
lib/teleswagger/models/sticker_set.rb,
lib/teleswagger/api/attachments_api.rb,
lib/teleswagger/models/inline_query.rb,
lib/teleswagger/models/webhook_info.rb,
lib/teleswagger/models/callback_game.rb,
lib/teleswagger/models/labeled_price.rb,
lib/teleswagger/models/mask_position.rb,
lib/teleswagger/models/response_bool.rb,
lib/teleswagger/models/allowed_update.rb,
lib/teleswagger/models/callback_query.rb,
lib/teleswagger/models/message_entity.rb,
lib/teleswagger/models/send_game_body.rb,
lib/teleswagger/models/shipping_query.rb,
lib/teleswagger/models/game_high_score.rb,
lib/teleswagger/models/keyboard_button.rb,
lib/teleswagger/models/response_update.rb,
lib/teleswagger/models/send_venue_body.rb,
lib/teleswagger/models/shipping_option.rb,
lib/teleswagger/models/get_updates_body.rb,
lib/teleswagger/models/response_message.rb,
lib/teleswagger/models/shipping_address.rb,
lib/teleswagger/models/input_media_photo.rb,
lib/teleswagger/models/input_media_video.rb,
lib/teleswagger/models/send_contact_body.rb,
lib/teleswagger/models/send_invoice_body.rb,
lib/teleswagger/models/send_message_body.rb,
lib/teleswagger/models/pre_checkout_query.rb,
lib/teleswagger/models/send_location_body.rb,
lib/teleswagger/models/successful_payment.rb,
lib/teleswagger/models/inline_response_200.rb,
lib/teleswagger/models/response_parameters.rb,
lib/teleswagger/models/user_profile_photos.rb,
lib/teleswagger/models/chosen_inline_result.rb,
lib/teleswagger/models/send_audio_link_body.rb,
lib/teleswagger/models/send_photo_link_body.rb,
lib/teleswagger/models/send_video_link_body.rb,
lib/teleswagger/models/send_voice_link_body.rb,
lib/teleswagger/models/inline_response_200_1.rb,
lib/teleswagger/models/inline_response_200_2.rb,
lib/teleswagger/models/inline_response_200_3.rb,
lib/teleswagger/models/inline_response_200_4.rb,
lib/teleswagger/models/inline_response_200_5.rb,
lib/teleswagger/models/inline_response_200_6.rb,
lib/teleswagger/models/inline_response_200_7.rb,
lib/teleswagger/models/inline_response_200_8.rb,
lib/teleswagger/models/inline_response_200_9.rb,
lib/teleswagger/models/reply_keyboard_markup.rb,
lib/teleswagger/models/reply_keyboard_remove.rb,
lib/teleswagger/models/edit_message_text_body.rb,
lib/teleswagger/models/inline_keyboard_button.rb,
lib/teleswagger/models/inline_keyboard_markup.rb,
lib/teleswagger/models/send_sticker_link_body.rb,
lib/teleswagger/models/inline_query_result_gif.rb,
lib/teleswagger/models/send_document_link_body.rb,
lib/teleswagger/models/answer_inline_query_body.rb,
lib/teleswagger/models/inline_query_result_game.rb,
lib/teleswagger/models/promote_chat_member_body.rb,
lib/teleswagger/models/edit_message_caption_body.rb,
lib/teleswagger/models/inline_query_result_audio.rb,
lib/teleswagger/models/inline_query_result_photo.rb,
lib/teleswagger/models/inline_query_result_venue.rb,
lib/teleswagger/models/inline_query_result_video.rb,
lib/teleswagger/models/inline_query_result_voice.rb,
lib/teleswagger/models/restrict_chat_member_body.rb,
lib/teleswagger/models/send_video_note_link_body.rb,
lib/teleswagger/models/answer_callback_query_body.rb,
lib/teleswagger/models/answer_shipping_query_body.rb,
lib/teleswagger/models/input_text_message_content.rb,
lib/teleswagger/models/send_media_group_link_body.rb,
lib/teleswagger/models/inline_query_result_article.rb,
lib/teleswagger/models/inline_query_result_contact.rb,
lib/teleswagger/models/input_venue_message_content.rb,
lib/teleswagger/models/add_sticker_to_set_link_body.rb,
lib/teleswagger/models/inline_query_result_document.rb,
lib/teleswagger/models/inline_query_result_location.rb,
lib/teleswagger/models/inline_query_result_mpeg4_gif.rb,
lib/teleswagger/models/input_contact_message_content.rb,
lib/teleswagger/models/edit_message_reply_markup_body.rb,
lib/teleswagger/models/inline_query_result_cached_gif.rb,
lib/teleswagger/models/input_location_message_content.rb,
lib/teleswagger/models/edit_message_live_location_body.rb,
lib/teleswagger/models/stop_message_live_location_body.rb,
lib/teleswagger/models/create_new_sticker_set_link_body.rb,
lib/teleswagger/models/inline_query_result_cached_audio.rb,
lib/teleswagger/models/inline_query_result_cached_photo.rb,
lib/teleswagger/models/inline_query_result_cached_video.rb,
lib/teleswagger/models/inline_query_result_cached_voice.rb,
lib/teleswagger/models/inline_query_result_cached_sticker.rb,
lib/teleswagger/models/inline_query_result_cached_document.rb,
lib/teleswagger/models/inline_query_result_cached_mpeg4_gif.rb
Overview
#Telegram bot API
#This is a swagger defenition for [Telegram bot API](core.telegram.org/bots/api).
OpenAPI spec version: 3.6
Generated by: github.com/swagger-api/swagger-codegen.git
Licensed under the Apache License, Version 2.0 (the “License”); you may not use this file except in compliance with the License. You may obtain a copy of the License at
www.apache.org/licenses/LICENSE-2.0
Unless required by applicable law or agreed to in writing, software distributed under the License is distributed on an “AS IS” BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the specific language governing permissions and limitations under the License.
Defined Under Namespace
Classes: AddStickerToSetLinkBody, AllowedUpdate, Animation, AnswerCallbackQueryBody, AnswerInlineQueryBody, AnswerShippingQueryBody, ApiClient, ApiError, AttachmentsApi, Audio, CallbackGame, CallbackQuery, CallbacksApi, Chat, ChatMember, ChatPhoto, ChatsApi, ChosenInlineResult, Configuration, Contact, CreateNewStickerSetLinkBody, Document, EditMessageCaptionBody, EditMessageLiveLocationBody, EditMessageReplyMarkupBody, EditMessageTextBody, Error, File, ForceReply, Game, GameHighScore, GamesApi, GetUpdatesBody, InlineApi, InlineKeyboardButton, InlineKeyboardMarkup, InlineQuery, InlineQueryResultArticle, InlineQueryResultAudio, InlineQueryResultCachedAudio, InlineQueryResultCachedDocument, InlineQueryResultCachedGif, InlineQueryResultCachedMpeg4Gif, InlineQueryResultCachedPhoto, InlineQueryResultCachedSticker, InlineQueryResultCachedVideo, InlineQueryResultCachedVoice, InlineQueryResultContact, InlineQueryResultDocument, InlineQueryResultGame, InlineQueryResultGif, InlineQueryResultLocation, InlineQueryResultMpeg4Gif, InlineQueryResultPhoto, InlineQueryResultVenue, InlineQueryResultVideo, InlineQueryResultVoice, InlineResponse200, InlineResponse2001, InlineResponse2002, InlineResponse2003, InlineResponse2004, InlineResponse2005, InlineResponse2006, InlineResponse2007, InlineResponse2008, InlineResponse2009, InlineType, InputContactMessageContent, InputLocationMessageContent, InputMediaPhoto, InputMediaVideo, InputTextMessageContent, InputVenueMessageContent, Invoice, KeyboardButton, LabeledPrice, Location, MaskPosition, Message, MessageEntity, MessagesApi, OrderInfo, ParseMode, PaymentsApi, PhotoSize, PreCheckoutQuery, PromoteChatMemberBody, ReplyKeyboardMarkup, ReplyKeyboardRemove, ResponseBool, ResponseMessage, ResponseParameters, ResponseUpdate, RestrictChatMemberBody, SendAudioLinkBody, SendContactBody, SendDocumentLinkBody, SendGameBody, SendInvoiceBody, SendLocationBody, SendMediaGroupLinkBody, SendMessageBody, SendPhotoLinkBody, SendStickerLinkBody, SendVenueBody, SendVideoLinkBody, SendVideoNoteLinkBody, SendVoiceLinkBody, ShippingAddress, ShippingOption, ShippingQuery, Sticker, StickerSet, StickersApi, StopMessageLiveLocationBody, SuccessfulPayment, Update, UpdatesApi, User, UserProfilePhotos, UsersApi, Venue, Video, VideoNote, Voice, WebhookInfo
Constant Summary collapse
- VERSION =
"0.2.0"
Class Method Summary collapse
-
.configure ⇒ Object
Customize default settings for the SDK using block.
Class Method Details
.configure ⇒ Object
Customize default settings for the SDK using block.
Teleswagger.configure do |config|
config.username = "xxx"
config.password = "xxx"
end
If no block given, return the default Configuration object.
166 167 168 169 170 171 172 |
# File 'lib/teleswagger.rb', line 166 def configure if block_given? yield(Configuration.default) else Configuration.default end end |