Compare commits

..

No commits in common. "68a4d440e6c58e3fd8b1204ca394bf1b948b5fb6" and "3525ebdccc87f60ef555ad418e317f0cb3a51d15" have entirely different histories.

4 changed files with 0 additions and 44 deletions

View File

@ -1,13 +0,0 @@
#!/usr/bin/env python3
import config
from telegram.ext import Updater, MessageHandler, Filters
def message_handling(bot, update):
pass
updater = Updater(token=config.api_key)
dispatcher = updater.dispatcher
dispatcher.add_handler(MessageHandler(Filters.text, message_handling))

View File

@ -1,6 +0,0 @@
# Create a new bot by messaging @BotFather and follow the instructions
# Replace the key by the actual token recieved from BotFather
api_key = "123456789:xxxxxxxxxxxxxxxxxxxxxxxxxxxx"
# Port to connect to server
port = 9876

View File

@ -1 +0,0 @@
CREATE TABLE messages(message text);

View File

@ -1,24 +0,0 @@
#!/usr/bin/env python3
from flask import Flask
import sqlite3
def get(db):
pass
def post(db):
pass
app = Flask(__name__)
db = sqlite3.connect(":memory:", check_same_thread=False)
# Set up tables
cursor = db.cursor()
with open('schema.sql') as fp:
cursor.executescript(fp.read())
app.add_url_rule('/get', 'get', lambda: get(db))
app.add_url_rule('/post', 'post', lambda: post(db))