Skip to content

Commit

Permalink
modified generate/bot-generate.py
Browse files Browse the repository at this point in the history
  • Loading branch information
Asker Kakhramanov committed Feb 24, 2024
1 parent 026b6c6 commit 78f4594
Showing 1 changed file with 1 addition and 9 deletions.
10 changes: 1 addition & 9 deletions generate/bot-generate.py
Original file line number Diff line number Diff line change
Expand Up @@ -7,12 +7,6 @@

bot=telebot.TeleBot(os.environ.get('generate_bot'))

# class MyHandler(http.server.BaseHTTPRequestHandler):
# def do_GET(self):
# self.send_response(200)
# self.end_headers()
# self.wfile.write(b"Hello World")

def escape_markdown(text):
"""
Функция для экранирования специальных символов в тексте для форматирования MarkdownV2.
Expand Down Expand Up @@ -69,7 +63,5 @@ def generate_pin(message):
exit(0)

if __name__ == "__main__":
start_http_server(8000)
# server = http.server.HTTPServer(('localhost', 8001), MyHandler)
# server.serve_forever()
start_http_server(62865)
bot.polling() # Запуск бота

0 comments on commit 78f4594

Please sign in to comment.