mirror of
https://github.com/eternnoir/pyTelegramBotAPI.git
synced 2023-08-10 21:12:57 +03:00
Add TODO to readme.
This commit is contained in:
parent
ac11e26790
commit
b14cf1ecd4
15
README.md
15
README.md
@ -43,3 +43,18 @@ tb.polling(3)
|
||||
while True:
|
||||
time.sleep(20)
|
||||
```
|
||||
|
||||
## TODO
|
||||
|
||||
- [x] getMe
|
||||
- [ ] sendMessage
|
||||
- [ ] forwardMessage
|
||||
- [ ] sendPhoto
|
||||
- [ ] sendAudio
|
||||
- [ ] sendDocument
|
||||
- [ ] sendSticker
|
||||
- [ ] sendVideo
|
||||
- [ ] sendLocation
|
||||
- [ ] sendChatAction
|
||||
- [ ] getUserProfilePhotos
|
||||
- [x] getUpdates
|
||||
|
@ -65,10 +65,10 @@ class Message:
|
||||
fromUser = User.de_json(json.dumps(obj['from']))
|
||||
chat = Message.parse_chat(obj['chat'])
|
||||
date = obj['date']
|
||||
text = None
|
||||
opts = {}
|
||||
if 'text' in obj:
|
||||
text = obj['text']
|
||||
return Message(message_id, fromUser, date, chat, text=text)
|
||||
opts['text'] = obj['text']
|
||||
return Message(message_id, fromUser, date, chat, opts)
|
||||
|
||||
@classmethod
|
||||
def parse_chat(cls, chat):
|
||||
@ -77,7 +77,7 @@ class Message:
|
||||
else:
|
||||
return User.de_json(json.dumps(chat))
|
||||
|
||||
def __init__(self, message_id, fromUser, date, chat, **options):
|
||||
def __init__(self, message_id, fromUser, date, chat, options):
|
||||
self.chat = chat
|
||||
self.date = date
|
||||
self.fromUser = fromUser
|
||||
|
Loading…
Reference in New Issue
Block a user