Skip to content

Commit b76337d

Browse files
committed
__main__.py: assist with creating issues on github
usage: python -m telegram and copy/paste the output
1 parent 6afee6e commit b76337d

File tree

1 file changed

+18
-0
lines changed

1 file changed

+18
-0
lines changed

telegram/__main__.py

Lines changed: 18 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,18 @@
1+
import sys
2+
3+
import urllib3
4+
import certifi
5+
import future
6+
7+
from . import __version__ as telegram_ver
8+
9+
10+
def print_ver_info():
11+
print('python-telegram-bot {0}'.format(telegram_ver))
12+
print('urllib3 {0}'.format(urllib3.__version__))
13+
print('certifi {0}'.format(certifi.__version__))
14+
print('future {0}'.format(future.__version__))
15+
print('Python {0}'.format(sys.version.replace('\n', ' ')))
16+
17+
# main
18+
print_ver_info()

0 commit comments

Comments
 (0)
pFad - Phonifier reborn

Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy