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

First Init.

This commit is contained in:
eternnoir
2015-06-26 14:55:13 +08:00
commit 9c3886f332
4 changed files with 237 additions and 0 deletions

39
telebot/__init__.py Normal file
View File

@ -0,0 +1,39 @@
# -*- coding: utf-8 -*-
import apihelper
"""
Module : telebot
"""
API_URL = r"https://api.telegram.org/"
class TeleBot:
""" This is TeleBot Class
Methods:
getMe
sendMessage
forwardMessage
sendPhoto
sendAudio
sendDocument
sendSticker
sendVideo
sendLocation
sendChatAction
getUserProfilePhotos
getUpdates
setWebhook
"""
def __init__(self, token):
self.token = token
def get_me(self):
# TODO
return None
def send_message(self, chat_id, text, disable_web_page_preview=None, reply_to_message_id=None, reply_markup=None):
return apihelper.send_message(self.token, chat_id, text, disable_web_page_preview, reply_to_message_id,
reply_markup)