Skip to main content

tele_api_python

Auto-generated OpenAPI schema

This Python package is automatically generated by the OpenAPI Generator project:

  • API version: 8.3.0
  • Package version: 1.0.0
  • Generator version: 7.12.0
  • Build package: org.openapitools.codegen.languages.PythonClientCodegen

Requirements.

Python 3.8+

Installation & Usage

pip install

If the python package is hosted on a repository, you can install directly using:

pip install git+https://github.com/tele-api/tele-api-python.git

(you may need to run pip with root permission: sudo pip install git+https://github.com/tele-api/tele-api-python.git)

Then import the package:

import tele_api_python

Setuptools

Install via Setuptools.

python setup.py install --user

(or sudo python setup.py install to install the package for all users)

Then import the package:

import tele_api_python

Tests

Execute pytest to run the tests.

Getting Started

Please follow the installation procedure and then run the following:

import tele_api_python
from tele_api_python.rest import ApiException
from pprint import pprint

# Defining the host is optional and defaults to https://api.telegram.org/bot123456:ABC-DEF1234ghIkl-zyx57W2v1u123ew11
# See configuration.py for a list of all supported configuration parameters.
configuration = tele_api_python.Configuration(
    host = "https://api.telegram.org/bot123456:ABC-DEF1234ghIkl-zyx57W2v1u123ew11"
)



# Enter a context with an instance of the API client
with tele_api_python.ApiClient(configuration) as api_client:
    # Create an instance of the API class
    api_instance = tele_api_python.DefaultApi(api_client)
    user_id = 56 # int | User identifier of sticker set owner
    name = 'name_example' # str | Sticker set name
    sticker = tele_api_python.InputSticker() # InputSticker | 

    try:
        api_response = api_instance.add_sticker_to_set_post(user_id, name, sticker)
        print("The response of DefaultApi->add_sticker_to_set_post:\n")
        pprint(api_response)
    except ApiException as e:
        print("Exception when calling DefaultApi->add_sticker_to_set_post: %s\n" % e)

Documentation for API Endpoints

All URIs are relative to https://api.telegram.org/bot123456:ABC-DEF1234ghIkl-zyx57W2v1u123ew11

Class Method HTTP request Description
DefaultApi add_sticker_to_set_post POST /addStickerToSet
DefaultApi answer_callback_query_post POST /answerCallbackQuery
DefaultApi answer_inline_query_post POST /answerInlineQuery
DefaultApi answer_pre_checkout_query_post POST /answerPreCheckoutQuery
DefaultApi answer_shipping_query_post POST /answerShippingQuery
DefaultApi answer_web_app_query_post POST /answerWebAppQuery
DefaultApi approve_chat_join_request_post POST /approveChatJoinRequest
DefaultApi ban_chat_member_post POST /banChatMember
DefaultApi ban_chat_sender_chat_post POST /banChatSenderChat
DefaultApi close_forum_topic_post POST /closeForumTopic
DefaultApi close_general_forum_topic_post POST /closeGeneralForumTopic
DefaultApi close_post POST /close
DefaultApi copy_message_post POST /copyMessage
DefaultApi copy_messages_post POST /copyMessages
DefaultApi create_chat_invite_link_post POST /createChatInviteLink
DefaultApi create_chat_subscription_invite_link_post POST /createChatSubscriptionInviteLink
DefaultApi create_forum_topic_post POST /createForumTopic
DefaultApi create_invoice_link_post POST /createInvoiceLink
DefaultApi create_new_sticker_set_post POST /createNewStickerSet
DefaultApi decline_chat_join_request_post POST /declineChatJoinRequest
DefaultApi delete_chat_photo_post POST /deleteChatPhoto
DefaultApi delete_chat_sticker_set_post POST /deleteChatStickerSet
DefaultApi delete_forum_topic_post POST /deleteForumTopic
DefaultApi delete_message_post POST /deleteMessage
DefaultApi delete_messages_post POST /deleteMessages
DefaultApi delete_my_commands_post POST /deleteMyCommands
DefaultApi delete_sticker_from_set_post POST /deleteStickerFromSet
DefaultApi delete_sticker_set_post POST /deleteStickerSet
DefaultApi delete_webhook_post POST /deleteWebhook
DefaultApi edit_chat_invite_link_post POST /editChatInviteLink
DefaultApi edit_chat_subscription_invite_link_post POST /editChatSubscriptionInviteLink
DefaultApi edit_forum_topic_post POST /editForumTopic
DefaultApi edit_general_forum_topic_post POST /editGeneralForumTopic
DefaultApi edit_message_caption_post POST /editMessageCaption
DefaultApi edit_message_live_location_post POST /editMessageLiveLocation
DefaultApi edit_message_media_post POST /editMessageMedia
DefaultApi edit_message_reply_markup_post POST /editMessageReplyMarkup
DefaultApi edit_message_text_post POST /editMessageText
DefaultApi edit_user_star_subscription_post POST /editUserStarSubscription
DefaultApi export_chat_invite_link_post POST /exportChatInviteLink
DefaultApi forward_message_post POST /forwardMessage
DefaultApi forward_messages_post POST /forwardMessages
DefaultApi get_available_gifts_post POST /getAvailableGifts
DefaultApi get_business_connection_post POST /getBusinessConnection
DefaultApi get_chat_administrators_post POST /getChatAdministrators
DefaultApi get_chat_member_count_post POST /getChatMemberCount
DefaultApi get_chat_member_post POST /getChatMember
DefaultApi get_chat_menu_button_post POST /getChatMenuButton
DefaultApi get_chat_post POST /getChat
DefaultApi get_custom_emoji_stickers_post POST /getCustomEmojiStickers
DefaultApi get_file_post POST /getFile
DefaultApi get_forum_topic_icon_stickers_post POST /getForumTopicIconStickers
DefaultApi get_game_high_scores_post POST /getGameHighScores
DefaultApi get_me_post POST /getMe
DefaultApi get_my_commands_post POST /getMyCommands
DefaultApi get_my_default_administrator_rights_post POST /getMyDefaultAdministratorRights
DefaultApi get_my_description_post POST /getMyDescription
DefaultApi get_my_name_post POST /getMyName
DefaultApi get_my_short_description_post POST /getMyShortDescription
DefaultApi get_star_transactions_post POST /getStarTransactions
DefaultApi get_sticker_set_post POST /getStickerSet
DefaultApi get_updates_post POST /getUpdates
DefaultApi get_user_chat_boosts_post POST /getUserChatBoosts
DefaultApi get_user_profile_photos_post POST /getUserProfilePhotos
DefaultApi get_webhook_info_post POST /getWebhookInfo
DefaultApi hide_general_forum_topic_post POST /hideGeneralForumTopic
DefaultApi leave_chat_post POST /leaveChat
DefaultApi log_out_post POST /logOut
DefaultApi pin_chat_message_post POST /pinChatMessage
DefaultApi promote_chat_member_post POST /promoteChatMember
DefaultApi refund_star_payment_post POST /refundStarPayment
DefaultApi remove_chat_verification_post POST /removeChatVerification
DefaultApi remove_user_verification_post POST /removeUserVerification
DefaultApi reopen_forum_topic_post POST /reopenForumTopic
DefaultApi reopen_general_forum_topic_post POST /reopenGeneralForumTopic
DefaultApi replace_sticker_in_set_post POST /replaceStickerInSet
DefaultApi restrict_chat_member_post POST /restrictChatMember
DefaultApi revoke_chat_invite_link_post POST /revokeChatInviteLink
DefaultApi save_prepared_inline_message_post POST /savePreparedInlineMessage
DefaultApi send_animation_post POST /sendAnimation
DefaultApi send_audio_post POST /sendAudio
DefaultApi send_chat_action_post POST /sendChatAction
DefaultApi send_contact_post POST /sendContact
DefaultApi send_dice_post POST /sendDice
DefaultApi send_document_post POST /sendDocument
DefaultApi send_game_post POST /sendGame
DefaultApi send_gift_post POST /sendGift
DefaultApi send_invoice_post POST /sendInvoice
DefaultApi send_location_post POST /sendLocation
DefaultApi send_media_group_post POST /sendMediaGroup
DefaultApi send_message_post POST /sendMessage
DefaultApi send_paid_media_post POST /sendPaidMedia
DefaultApi send_photo_post POST /sendPhoto
DefaultApi send_poll_post POST /sendPoll
DefaultApi send_sticker_post POST /sendSticker
DefaultApi send_venue_post POST /sendVenue
DefaultApi send_video_note_post POST /sendVideoNote
DefaultApi send_video_post POST /sendVideo
DefaultApi send_voice_post POST /sendVoice
DefaultApi set_chat_administrator_custom_title_post POST /setChatAdministratorCustomTitle
DefaultApi set_chat_description_post POST /setChatDescription
DefaultApi set_chat_menu_button_post POST /setChatMenuButton
DefaultApi set_chat_permissions_post POST /setChatPermissions
DefaultApi set_chat_photo_post POST /setChatPhoto
DefaultApi set_chat_sticker_set_post POST /setChatStickerSet
DefaultApi set_chat_title_post POST /setChatTitle
DefaultApi set_custom_emoji_sticker_set_thumbnail_post POST /setCustomEmojiStickerSetThumbnail
DefaultApi set_game_score_post POST /setGameScore
DefaultApi set_message_reaction_post POST /setMessageReaction
DefaultApi set_my_commands_post POST /setMyCommands
DefaultApi set_my_default_administrator_rights_post POST /setMyDefaultAdministratorRights
DefaultApi set_my_description_post POST /setMyDescription
DefaultApi set_my_name_post POST /setMyName
DefaultApi set_my_short_description_post POST /setMyShortDescription
DefaultApi set_passport_data_errors_post POST /setPassportDataErrors
DefaultApi set_sticker_emoji_list_post POST /setStickerEmojiList
DefaultApi set_sticker_keywords_post POST /setStickerKeywords
DefaultApi set_sticker_mask_position_post POST /setStickerMaskPosition
DefaultApi set_sticker_position_in_set_post POST /setStickerPositionInSet
DefaultApi set_sticker_set_thumbnail_post POST /setStickerSetThumbnail
DefaultApi set_sticker_set_title_post POST /setStickerSetTitle
DefaultApi set_user_emoji_status_post POST /setUserEmojiStatus
DefaultApi set_webhook_post POST /setWebhook
DefaultApi stop_message_live_location_post POST /stopMessageLiveLocation
DefaultApi stop_poll_post POST /stopPoll
DefaultApi unban_chat_member_post POST /unbanChatMember
DefaultApi unban_chat_sender_chat_post POST /unbanChatSenderChat
DefaultApi unhide_general_forum_topic_post POST /unhideGeneralForumTopic
DefaultApi unpin_all_chat_messages_post POST /unpinAllChatMessages
DefaultApi unpin_all_forum_topic_messages_post POST /unpinAllForumTopicMessages
DefaultApi unpin_all_general_forum_topic_messages_post POST /unpinAllGeneralForumTopicMessages
DefaultApi unpin_chat_message_post POST /unpinChatMessage
DefaultApi upload_sticker_file_post POST /uploadStickerFile
DefaultApi verify_chat_post POST /verifyChat
DefaultApi verify_user_post POST /verifyUser

Documentation For Models

Documentation For Authorization

Endpoints do not require authorization.

Author

Metadata

Release files for tele_api_python 1.0.0

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for tele_api_python 1.0.0
File Size Uploaded
tele_api_python-1.0.0.tar.gz 257.8 kB Details

Built distribution (wheel)

Table of built distributions (wheels) for tele_api_python 1.0.0
File Interpreter ABI Platform
tele_api_python-1.0.0-py3-none-any.whl Python 3 none any Details

Total release size: 1.0 MB

Release files / tele_api_python-1.0.0.tar.gz

Download URL tele_api_python-1.0.0.tar.gz
Size 257.8 kB
Tags Source
SHA-256 checksum
How to use checksums
fa8fb811524cb9e82e09596e1649cb7a1f7fa49e9a4ed2eb2f0f38f3a047f0c4
BLAKE2b-256 checksum
How to use checksums
8a1185e60ded3132ea52087d19f0b7695af82fd1c0dd1c90673fb46ed894425d
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via poetry/2.0.1 CPython/3.12.3 Windows/11

Release files / tele_api_python-1.0.0-py3-none-any.whl

Download URL tele_api_python-1.0.0-py3-none-any.whl
Size 751.5 kB
Tags Python 3
SHA-256 checksum
How to use checksums
8041dbfd107460505b528c29ccec92480c81bd2bc22f244b6bf3fc27fbb91a1b
BLAKE2b-256 checksum
How to use checksums
c0e2ebbff047420f0f779022e73db7f2e0bf1f107b5ab99d1a38d1249479b78f
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via poetry/2.0.1 CPython/3.12.3 Windows/11

Release history Release notifications | RSS feed

This release

1.0.0 This release

2 release files

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page