View gist:db886b1028b7d7a6654df39f03af55cb
~version: "2.0" | |
# this IV is a pretty basic example for a pretty basic website. LET'S GO | |
?exists: //meta[@content="article"] | |
# very easy way to determine if our IV should be generated or not. Works well. | |
body: //article | |
title: $body//h1[1] | |
channel: "@PresseEifel" | |
# basic variables, its their official channel, so we set it as well. | |
author: //a[@rel="author"] | |
author_url: //a[@class="url fn n"]/@href |
View bot.py
import asyncio | |
from telegram.ext import Updater, MessageHandler, Filters | |
from telethon.utils import resolve_bot_file_id, get_input_location | |
from telethon import TelegramClient | |
import logging | |
logging.basicConfig() | |
View bot.py
import logging | |
from telegram import InlineKeyboardButton, InlineKeyboardMarkup | |
from telegram.ext import Updater, CommandHandler, CallbackQueryHandler | |
logging.basicConfig(format='%(asctime)s - %(name)s - %(levelname)s - %(message)s', | |
level=logging.INFO) | |
def start_command(update, context): |