Skip to content

Instantly share code, notes, and snippets.

View gsam1's full-sized avatar
🐱

Georgi Samardzhiev gsam1

🐱
View GitHub Profile
@gsam1
gsam1 / tgbot.py
Created September 10, 2022 11:36
Simple Telegram Bot
import telebot
bot = telebot.TeleBot("TOKEN", parse_mode=None)
@gsam1
gsam1 / tgbot.py
Created September 10, 2022 11:37
import telebot
def run_screener() -> str:
'''
This is where you would develop your screener.
It is important to note - you should return a string.
'''
return "I generated a new signal!"
import telebot
TOKEN = "<YOUR-TOKEN-HERE>"
CHANNEL = "<YOUR-CHANNEL-ID-HERE>"
tb = telebot.TeleBot(TOKEN, parse_mode=None)
def run_screener() -> str:
'''
import schedule
schedule.every().hour.at("00").do(send_telegram_signals)
@gsam1
gsam1 / tgall.py
Created September 10, 2022 11:41
import telebot
import schedule
TOKEN = "<YOUR-TOKEN-HERE>"
CHANNEL = "<YOUR-CHANNEL-ID-HERE>"
tb = telebot.TeleBot(TOKEN, parse_mode=None)