mirror of
https://github.com/nikdoof/smsbot.git
synced 2025-12-13 10:02:15 +00:00
Sort imports
This commit is contained in:
@@ -1,14 +1,15 @@
|
||||
import logging
|
||||
from setuptools import Command
|
||||
|
||||
from prometheus_client import Counter, Summary, make_wsgi_app
|
||||
from setuptools import Command
|
||||
from telegram.ext import CommandHandler, Updater
|
||||
|
||||
from smsbot.utils import get_smsbot_version
|
||||
from prometheus_client import make_wsgi_app, Counter, Summary
|
||||
|
||||
REQUEST_TIME = Summary('telegram_request_processing_seconds', 'Time spent processing request')
|
||||
COMMAND_COUNT = Counter('telegram_command_count', 'Total number of commands processed')
|
||||
|
||||
|
||||
class TelegramSmsBot(object):
|
||||
|
||||
def __init__(self, telegram_token, allow_subscribing=False, owner=None, subscribers=None):
|
||||
|
||||
@@ -3,14 +3,13 @@ import os
|
||||
from functools import wraps
|
||||
|
||||
from flask import Flask, abort, current_app, request
|
||||
from prometheus_client import Counter, Summary, make_wsgi_app
|
||||
from twilio.request_validator import RequestValidator
|
||||
from waitress import serve
|
||||
from werkzeug.middleware.dispatcher import DispatcherMiddleware
|
||||
|
||||
from smsbot.utils import get_smsbot_version
|
||||
|
||||
from werkzeug.middleware.dispatcher import DispatcherMiddleware
|
||||
from prometheus_client import make_wsgi_app, Counter, Summary
|
||||
|
||||
REQUEST_TIME = Summary('webhook_request_processing_seconds', 'Time spent processing request')
|
||||
MESSAGE_COUNT = Counter('webhook_message_count', 'Total number of messages processed')
|
||||
CALL_COUNT = Counter('webhook_call_count', 'Total number of calls processed')
|
||||
|
||||
Reference in New Issue
Block a user