mirror of
https://github.com/python-telegram-bot/python-telegram-bot.git
synced 2024-11-22 15:17:00 +01:00
acf1541395
* New fields channel_post and edited_channel_post for Update refs #468 * setGameScore() changes - Changed behaviour: messages with high scores will be update with new high scores by default. (documentation fix) - Use (new) disable_edit_message in setGameScore to disable the above new behaviour. - The edit_message parameter from setGameScore is no longer in use. For backward compatibility, it will be taken into account for a while, unless disable_edit_message is passed explicitly. refs #468 * New field forward_from_message_id for Message. refs #468 * New parameter cache_time for answerCallbackQuery refs #468 * replykeyboardhide renamed to replykeyboardremove refs #468 * Unitests for updated setGameScore semantics refs #468 * Backward compatibility for ReplyKeyboardHide refs #468 * Fix docstrings of wrapper methods in Message * Unitest new field forward_from_message_id of Message refs #468 * Fix testMaxCaptionLength Telegram servers changed their behaviour - now they truncate a long caption instead of returning an error. * MessageHandler: Added support for channel posts * Fix flake8 complaints in a manner which yapf will like it too. * fix rst markup
23 lines
476 B
Python
23 lines
476 B
Python
import sys
|
|
|
|
import urllib3
|
|
import certifi
|
|
import future
|
|
|
|
from . import __version__ as telegram_ver
|
|
|
|
|
|
def print_ver_info():
|
|
print('python-telegram-bot {0}'.format(telegram_ver))
|
|
print('urllib3 {0}'.format(urllib3.__version__))
|
|
print('certifi {0}'.format(certifi.__version__))
|
|
print('future {0}'.format(future.__version__))
|
|
print('Python {0}'.format(sys.version.replace('\n', ' ')))
|
|
|
|
|
|
def main():
|
|
print_ver_info()
|
|
|
|
|
|
if __name__ == '__main__':
|
|
main()
|