blob: 99a0ef553297a7a98c180c42d1359ff1fcb370ad (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
|
#!/usr/env python
import sys
def get_token_from_argv():
try:
return sys.argv[1]
except:
print("Please provide the telegram bot token as a command line argument.")
sys.exit()
def main():
try:
import telepot
except:
print("radiodiodibot needs the telepot module to communicate with Telegram.")
print("Please install telepot before using radiodiodibot.")
return
token = get_token_from_argv()
if __name__ == "__main__":
main()
|