1
0
mirror of https://github.com/eternnoir/pyTelegramBotAPI.git synced 2023-08-10 21:12:57 +03:00

Updated description for TeleBot class

This commit is contained in:
coder2020official 2022-03-06 23:23:33 +05:00
parent 78bdf1ca4e
commit c45e06c694

View File

@ -72,81 +72,20 @@ class ExceptionHandler:
class TeleBot: class TeleBot:
""" This is TeleBot Class """
Methods: This is the main class to deal with bot.
getMe It allows you to add handlers for different kind of updates.
logOut
close Usage:
sendMessage .. code-block:: python
forwardMessage
copyMessage from telebot import TeleBot
deleteMessage bot = TeleBot('token') # get token from @BotFather
sendPhoto
sendAudio See more examples in examples/ directory:
sendDocument https://github.com/eternnoir/pyTelegramBotAPI/tree/master/examples
sendSticker
sendVideo """
sendVenue
sendAnimation
sendVideoNote
sendLocation
sendChatAction
sendDice
sendContact
sendInvoice
sendMediaGroup
getUserProfilePhotos
getUpdates
getFile
sendPoll
stopPoll
sendGame
setGameScore
getGameHighScores
editMessageText
editMessageCaption
editMessageMedia
editMessageReplyMarkup
editMessageLiveLocation
stopMessageLiveLocation
banChatMember
unbanChatMember
restrictChatMember
promoteChatMember
setChatAdministratorCustomTitle
setChatPermissions
createChatInviteLink
editChatInviteLink
revokeChatInviteLink
exportChatInviteLink
setChatStickerSet
deleteChatStickerSet
createNewStickerSet
addStickerToSet
deleteStickerFromSet
setStickerPositionInSet
uploadStickerFile
setStickerSetThumb
getStickerSet
setChatPhoto
deleteChatPhoto
setChatTitle
setChatDescription
pinChatMessage
unpinChatMessage
leaveChat
getChat
getChatAdministrators
getChatMemberCount
getChatMember
answerCallbackQuery
getMyCommands
setMyCommands
deleteMyCommands
answerInlineQuery
answerShippingQuery
answerPreCheckoutQuery
"""
def __init__( def __init__(
self, token, parse_mode=None, threaded=True, skip_pending=False, num_threads=2, self, token, parse_mode=None, threaded=True, skip_pending=False, num_threads=2,