|
|
|
@ -1,6 +1,14 @@
|
|
|
|
|
#!/usr/bin/python3
|
|
|
|
|
# -*- coding: utf-8 -*-
|
|
|
|
|
import asyncio
|
|
|
|
|
|
|
|
|
|
# since 3.5: type hints
|
|
|
|
|
# def <name>(<args) -> <returntype>:
|
|
|
|
|
|
|
|
|
|
import asyncio # write concurrent code (not threading. not multiprocessing)
|
|
|
|
|
# it's cooperative multitasking, no parallelism
|
|
|
|
|
# coroutines: suspend execution before return and pass control to another coroutine
|
|
|
|
|
# use await only in async functions
|
|
|
|
|
|
|
|
|
|
import datetime
|
|
|
|
|
import json
|
|
|
|
|
import signal
|
|
|
|
@ -26,6 +34,7 @@ from telepot.namedtuple import InlineKeyboardMarkup, InlineKeyboardButton
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
class Essen:
|
|
|
|
|
""" Test Docstring """
|
|
|
|
|
def __init__(self, name, preis, kategorie):
|
|
|
|
|
self.name = name
|
|
|
|
|
self.preis = preis
|
|
|
|
|