New Case Study:See how Anthropic automated 95% of dependency reviews with Socket.Learn More
Socket
Sign inDemoInstall
Socket

telegram-bot-openapi

Package Overview
Dependencies
Maintainers
1
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

telegram-bot-openapi

  • 7.2.1
  • Rubygems
  • Socket score

Version published
Maintainers
1
Created
Source

telegram-bot

TelegramBot - the Ruby gem for the telegram-bot-api

Unofficial telegram-bot-api OpenAPI spec. Generated from the Bot API docs at https://core.telegram.org/bots/api

This SDK is automatically generated by the OpenAPI Generator project:

  • API version: Bot API 7.2
  • Package version: 7.2.0
  • Generator version: 7.7.0
  • Build package: org.openapitools.codegen.languages.RubyClientCodegen

Installation

Build a gem

To build the Ruby code into a gem:

gem build telegram-bot.gemspec

Then either install the gem locally:

gem install ./telegram-bot-7.2.0.gem

(for development, run gem install --dev ./telegram-bot-7.2.0.gem to install the development dependencies)

or publish the gem to a gem hosting service, e.g. RubyGems.

Finally add this to the Gemfile:

gem 'telegram-bot', '~> 7.2.0'

Install from Git

If the Ruby gem is hosted at a git repository: https://github.com/GIT_USER_ID/GIT_REPO_ID, then add the following in the Gemfile:

gem 'telegram-bot', :git => 'https://github.com/GIT_USER_ID/GIT_REPO_ID.git'

Include the Ruby code directly

Include the Ruby code directly using -I as follows:

ruby -Ilib script.rb

Getting Started

Please follow the installation procedure and then run the following code:

# Load the gem
require 'telegram-bot'

api_instance = TelegramBot::DefaultApi.new
user_id = 789 # Integer | 
name = 'name_example' # String | 
sticker = TelegramBot::InputSticker.new({sticker: { key: nil}, format: 'format_example', emoji_list: ['emoji_list_example']}) # InputSticker | 

begin
  #addStickerToSet
  result = api_instance.add_sticker_to_set(user_id, name, sticker)
  p result
rescue TelegramBot::ApiError => e
  puts "Exception when calling DefaultApi->add_sticker_to_set: #{e}"
end

Documentation for API Endpoints

All URIs are relative to https://api.telegram.org/bot123:XYZ

ClassMethodHTTP requestDescription
TelegramBot::DefaultApiadd_sticker_to_setPOST /addStickerToSetaddStickerToSet
TelegramBot::DefaultApianswer_callback_queryPOST /answerCallbackQueryanswerCallbackQuery
TelegramBot::DefaultApianswer_inline_queryPOST /answerInlineQueryanswerInlineQuery
TelegramBot::DefaultApianswer_pre_checkout_queryPOST /answerPreCheckoutQueryanswerPreCheckoutQuery
TelegramBot::DefaultApianswer_shipping_queryPOST /answerShippingQueryanswerShippingQuery
TelegramBot::DefaultApianswer_web_app_queryPOST /answerWebAppQueryanswerWebAppQuery
TelegramBot::DefaultApiapprove_chat_join_requestPOST /approveChatJoinRequestapproveChatJoinRequest
TelegramBot::DefaultApiban_chat_memberPOST /banChatMemberbanChatMember
TelegramBot::DefaultApiban_chat_sender_chatPOST /banChatSenderChatbanChatSenderChat
TelegramBot::DefaultApiclosePOST /closeclose
TelegramBot::DefaultApiclose_forum_topicPOST /closeForumTopiccloseForumTopic
TelegramBot::DefaultApiclose_general_forum_topicPOST /closeGeneralForumTopiccloseGeneralForumTopic
TelegramBot::DefaultApicopy_messagePOST /copyMessagecopyMessage
TelegramBot::DefaultApicopy_messagesPOST /copyMessagescopyMessages
TelegramBot::DefaultApicreate_chat_invite_linkPOST /createChatInviteLinkcreateChatInviteLink
TelegramBot::DefaultApicreate_forum_topicPOST /createForumTopiccreateForumTopic
TelegramBot::DefaultApicreate_invoice_linkPOST /createInvoiceLinkcreateInvoiceLink
TelegramBot::DefaultApicreate_new_sticker_setPOST /createNewStickerSetcreateNewStickerSet
TelegramBot::DefaultApidecline_chat_join_requestPOST /declineChatJoinRequestdeclineChatJoinRequest
TelegramBot::DefaultApidelete_chat_photoPOST /deleteChatPhotodeleteChatPhoto
TelegramBot::DefaultApidelete_chat_sticker_setPOST /deleteChatStickerSetdeleteChatStickerSet
TelegramBot::DefaultApidelete_forum_topicPOST /deleteForumTopicdeleteForumTopic
TelegramBot::DefaultApidelete_messagePOST /deleteMessagedeleteMessage
TelegramBot::DefaultApidelete_messagesPOST /deleteMessagesdeleteMessages
TelegramBot::DefaultApidelete_my_commandsPOST /deleteMyCommandsdeleteMyCommands
TelegramBot::DefaultApidelete_sticker_from_setPOST /deleteStickerFromSetdeleteStickerFromSet
TelegramBot::DefaultApidelete_sticker_setPOST /deleteStickerSetdeleteStickerSet
TelegramBot::DefaultApidelete_webhookPOST /deleteWebhookdeleteWebhook
TelegramBot::DefaultApiedit_chat_invite_linkPOST /editChatInviteLinkeditChatInviteLink
TelegramBot::DefaultApiedit_forum_topicPOST /editForumTopiceditForumTopic
TelegramBot::DefaultApiedit_general_forum_topicPOST /editGeneralForumTopiceditGeneralForumTopic
TelegramBot::DefaultApiedit_message_captionPOST /editMessageCaptioneditMessageCaption
TelegramBot::DefaultApiedit_message_live_locationPOST /editMessageLiveLocationeditMessageLiveLocation
TelegramBot::DefaultApiedit_message_mediaPOST /editMessageMediaeditMessageMedia
TelegramBot::DefaultApiedit_message_reply_markupPOST /editMessageReplyMarkupeditMessageReplyMarkup
TelegramBot::DefaultApiedit_message_textPOST /editMessageTexteditMessageText
TelegramBot::DefaultApiexport_chat_invite_linkPOST /exportChatInviteLinkexportChatInviteLink
TelegramBot::DefaultApiforward_messagePOST /forwardMessageforwardMessage
TelegramBot::DefaultApiforward_messagesPOST /forwardMessagesforwardMessages
TelegramBot::DefaultApiget_business_connectionPOST /getBusinessConnectiongetBusinessConnection
TelegramBot::DefaultApiget_chatPOST /getChatgetChat
TelegramBot::DefaultApiget_chat_administratorsPOST /getChatAdministratorsgetChatAdministrators
TelegramBot::DefaultApiget_chat_memberPOST /getChatMembergetChatMember
TelegramBot::DefaultApiget_chat_member_countPOST /getChatMemberCountgetChatMemberCount
TelegramBot::DefaultApiget_chat_menu_buttonPOST /getChatMenuButtongetChatMenuButton
TelegramBot::DefaultApiget_custom_emoji_stickersPOST /getCustomEmojiStickersgetCustomEmojiStickers
TelegramBot::DefaultApiget_filePOST /getFilegetFile
TelegramBot::DefaultApiget_forum_topic_icon_stickersPOST /getForumTopicIconStickersgetForumTopicIconStickers
TelegramBot::DefaultApiget_game_high_scoresPOST /getGameHighScoresgetGameHighScores
TelegramBot::DefaultApiget_mePOST /getMegetMe
TelegramBot::DefaultApiget_my_commandsPOST /getMyCommandsgetMyCommands
TelegramBot::DefaultApiget_my_default_administrator_rightsPOST /getMyDefaultAdministratorRightsgetMyDefaultAdministratorRights
TelegramBot::DefaultApiget_my_descriptionPOST /getMyDescriptiongetMyDescription
TelegramBot::DefaultApiget_my_namePOST /getMyNamegetMyName
TelegramBot::DefaultApiget_my_short_descriptionPOST /getMyShortDescriptiongetMyShortDescription
TelegramBot::DefaultApiget_sticker_setPOST /getStickerSetgetStickerSet
TelegramBot::DefaultApiget_updatesPOST /getUpdatesgetUpdates
TelegramBot::DefaultApiget_user_chat_boostsPOST /getUserChatBoostsgetUserChatBoosts
TelegramBot::DefaultApiget_user_profile_photosPOST /getUserProfilePhotosgetUserProfilePhotos
TelegramBot::DefaultApiget_webhook_infoPOST /getWebhookInfogetWebhookInfo
TelegramBot::DefaultApihide_general_forum_topicPOST /hideGeneralForumTopichideGeneralForumTopic
TelegramBot::DefaultApileave_chatPOST /leaveChatleaveChat
TelegramBot::DefaultApilog_outPOST /logOutlogOut
TelegramBot::DefaultApipin_chat_messagePOST /pinChatMessagepinChatMessage
TelegramBot::DefaultApipromote_chat_memberPOST /promoteChatMemberpromoteChatMember
TelegramBot::DefaultApireopen_forum_topicPOST /reopenForumTopicreopenForumTopic
TelegramBot::DefaultApireopen_general_forum_topicPOST /reopenGeneralForumTopicreopenGeneralForumTopic
TelegramBot::DefaultApireplace_sticker_in_setPOST /replaceStickerInSetreplaceStickerInSet
TelegramBot::DefaultApirestrict_chat_memberPOST /restrictChatMemberrestrictChatMember
TelegramBot::DefaultApirevoke_chat_invite_linkPOST /revokeChatInviteLinkrevokeChatInviteLink
TelegramBot::DefaultApisend_animationPOST /sendAnimationsendAnimation
TelegramBot::DefaultApisend_audioPOST /sendAudiosendAudio
TelegramBot::DefaultApisend_chat_actionPOST /sendChatActionsendChatAction
TelegramBot::DefaultApisend_contactPOST /sendContactsendContact
TelegramBot::DefaultApisend_dicePOST /sendDicesendDice
TelegramBot::DefaultApisend_documentPOST /sendDocumentsendDocument
TelegramBot::DefaultApisend_gamePOST /sendGamesendGame
TelegramBot::DefaultApisend_invoicePOST /sendInvoicesendInvoice
TelegramBot::DefaultApisend_locationPOST /sendLocationsendLocation
TelegramBot::DefaultApisend_media_groupPOST /sendMediaGroupsendMediaGroup
TelegramBot::DefaultApisend_messagePOST /sendMessagesendMessage
TelegramBot::DefaultApisend_photoPOST /sendPhotosendPhoto
TelegramBot::DefaultApisend_pollPOST /sendPollsendPoll
TelegramBot::DefaultApisend_stickerPOST /sendStickersendSticker
TelegramBot::DefaultApisend_venuePOST /sendVenuesendVenue
TelegramBot::DefaultApisend_videoPOST /sendVideosendVideo
TelegramBot::DefaultApisend_video_notePOST /sendVideoNotesendVideoNote
TelegramBot::DefaultApisend_voicePOST /sendVoicesendVoice
TelegramBot::DefaultApiset_chat_administrator_custom_titlePOST /setChatAdministratorCustomTitlesetChatAdministratorCustomTitle
TelegramBot::DefaultApiset_chat_descriptionPOST /setChatDescriptionsetChatDescription
TelegramBot::DefaultApiset_chat_menu_buttonPOST /setChatMenuButtonsetChatMenuButton
TelegramBot::DefaultApiset_chat_permissionsPOST /setChatPermissionssetChatPermissions
TelegramBot::DefaultApiset_chat_photoPOST /setChatPhotosetChatPhoto
TelegramBot::DefaultApiset_chat_sticker_setPOST /setChatStickerSetsetChatStickerSet
TelegramBot::DefaultApiset_chat_titlePOST /setChatTitlesetChatTitle
TelegramBot::DefaultApiset_custom_emoji_sticker_set_thumbnailPOST /setCustomEmojiStickerSetThumbnailsetCustomEmojiStickerSetThumbnail
TelegramBot::DefaultApiset_game_scorePOST /setGameScoresetGameScore
TelegramBot::DefaultApiset_message_reactionPOST /setMessageReactionsetMessageReaction
TelegramBot::DefaultApiset_my_commandsPOST /setMyCommandssetMyCommands
TelegramBot::DefaultApiset_my_default_administrator_rightsPOST /setMyDefaultAdministratorRightssetMyDefaultAdministratorRights
TelegramBot::DefaultApiset_my_descriptionPOST /setMyDescriptionsetMyDescription
TelegramBot::DefaultApiset_my_namePOST /setMyNamesetMyName
TelegramBot::DefaultApiset_my_short_descriptionPOST /setMyShortDescriptionsetMyShortDescription
TelegramBot::DefaultApiset_passport_data_errorsPOST /setPassportDataErrorssetPassportDataErrors
TelegramBot::DefaultApiset_sticker_emoji_listPOST /setStickerEmojiListsetStickerEmojiList
TelegramBot::DefaultApiset_sticker_keywordsPOST /setStickerKeywordssetStickerKeywords
TelegramBot::DefaultApiset_sticker_mask_positionPOST /setStickerMaskPositionsetStickerMaskPosition
TelegramBot::DefaultApiset_sticker_position_in_setPOST /setStickerPositionInSetsetStickerPositionInSet
TelegramBot::DefaultApiset_sticker_set_thumbnailPOST /setStickerSetThumbnailsetStickerSetThumbnail
TelegramBot::DefaultApiset_sticker_set_titlePOST /setStickerSetTitlesetStickerSetTitle
TelegramBot::DefaultApiset_webhookPOST /setWebhooksetWebhook
TelegramBot::DefaultApistop_message_live_locationPOST /stopMessageLiveLocationstopMessageLiveLocation
TelegramBot::DefaultApistop_pollPOST /stopPollstopPoll
TelegramBot::DefaultApiunban_chat_memberPOST /unbanChatMemberunbanChatMember
TelegramBot::DefaultApiunban_chat_sender_chatPOST /unbanChatSenderChatunbanChatSenderChat
TelegramBot::DefaultApiunhide_general_forum_topicPOST /unhideGeneralForumTopicunhideGeneralForumTopic
TelegramBot::DefaultApiunpin_all_chat_messagesPOST /unpinAllChatMessagesunpinAllChatMessages
TelegramBot::DefaultApiunpin_all_forum_topic_messagesPOST /unpinAllForumTopicMessagesunpinAllForumTopicMessages
TelegramBot::DefaultApiunpin_all_general_forum_topic_messagesPOST /unpinAllGeneralForumTopicMessagesunpinAllGeneralForumTopicMessages
TelegramBot::DefaultApiunpin_chat_messagePOST /unpinChatMessageunpinChatMessage
TelegramBot::DefaultApiupload_sticker_filePOST /uploadStickerFileuploadStickerFile

Documentation for Models

Documentation for Authorization

Endpoints do not require authorization.

FAQs

Package last updated on 20 Jul 2024

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc