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:
parent
78bdf1ca4e
commit
c45e06c694
@ -72,80 +72,19 @@ 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__(
|
||||||
|
Loading…
Reference in New Issue
Block a user