app.bot.local_run   A
last analyzed

Complexity

Total Complexity 1

Size/Duplication

Total Lines 17
Duplicated Lines 0 %

Importance

Changes 0
Metric Value
wmc 1
eloc 12
dl 0
loc 17
rs 10
c 0
b 0
f 0

1 Function

Rating   Name   Duplication   Size   Complexity  
A main() 0 4 1
1
import asyncio
2
import os
3
4
from app.bot import bot
5
6
admin = os.getenv("TELEGRAM_ADMIN_ID")
7
8
if __name__ == "__main__":
9
10
    async def main():
11
        await bot.remove_webhook()
12
        await bot.send_message(chat_id=admin, text=await bot.get_me())
13
        await bot.polling(none_stop=True)
14
15
    loop = asyncio.get_event_loop()
16
    loop.run_until_complete(main())
17