- Added
Answerer
class to better deal with inline queries - Made
telepot.glance()
equivalent totelepot.glance2()
. Developers are encouraged to usetelepot.glance()
from now on. - Added
telepot.flance()
, a combination oftelepot.flavor()
andtelepot.glance()
.
- Handle new field
chosen_inline_result
in Update object telepot.flavor()
returns a new flavorchosen_inline_result
- Added
telepot.namedtuple.ChosenInlineResult
class
- Changed normal message's flavor to
normal
- Moved all namedtuple-related stuff to a new module
telepot.namedtuple
. All calls to the functiontelepot.namedtuple()
should be changed totelepot.namedtuple.namedtuple()
- Added a function
telepot.flavor()
to differentiate between a normal message and an inline query - Added
flavor
parameter totelepot.glance2()
to extract info according to message flavor notifyOnMessage()
andmessageLoop()
can handle inline query as well as normal chat messages- Added a few
per_XXX_id()
functions useful for spawning delegates for inline queries - Added
UserHandler
reply_markup
parameter can accept namedtuplesReplyKeyboardMarkup
,ReplyKeyboardHide
,ForceReply
as values
- Added webhook interface
- Added
supergroup_chat_created
,migrate_to_chat_id
,migrate_from_chat_id
, andchannel_chat_created
fields to Message
- Added
openable()
class decorator - Default
on_close()
prints out exception - Async
SpeakerBot
andDelegatorBot
constructor acceptsloop
parameter
- Revamped
Listener
andChatHandler
architecture - Added
create_open()
- Conforms to latest Telegram Bot API as of October 8, 2015
- Added
Chat
class, removedGroupChat
- Added
glance2()
- Added
per_chat_id_except()
- Added lock to
Microphone
, make it thread-safe
- Added listener and delegation mechanism
- Conforms to latest Telegram Bot API as of September 18, 2015
- Added
getFile()
anddownloadFile()
method - Added
File
namedtuple - Removed
file_link
field from namedtuples
- In async
messageLoop()
, a regular handler function would be called directly, whereas a coroutine would be allocated a task, usingBaseEventLoop.create_task()
. - In
messageLoop()
andnotifyOnMessage()
, therelax
time default is now 0.1 second.
- Fixed
pip install
syntax error - Having wasted a lot of version numbers, I finally get a better hang of setup.py, pip, and PyPI.
- Conforms to latest Telegram Bot API as of September 7, 2015
- Added an async version for Python 3.4
- Added a
file_link
field to some namedtuples, in response to a not-yet-documented change in Bot API - Better exception handling on receiving invalid JSON responses
- On receiving unexpected fields,
namedtuple()
would issue a warning and would not break.
- Conforms to latest Telegram Bot API as of August 29, 2015
- Added
certificate
parameters tosetWebhook()
- Added
telepot.glance()
andtelepot.namedtuple()
- Consolidated all tests into one script
- Use MIT license
- Conforms to latest Telegram Bot API as of August 15, 2015
- Added
sendVoice()
- Added
caption
andduration
parameters tosendVideo()
- Added
performer
andtitle
parameters tosendAudio()
- Test scripts test the module more completely