This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import logging | |
import time | |
from telegram import InlineKeyboardButton, InlineKeyboardMarkup | |
from telegram.error import BadRequest | |
from telegram.ext import Updater, CommandHandler, CallbackQueryHandler | |
BOT_TOKEN = "<BOT_TOKEN>" | |
logger = logging.getLogger(__name__) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
BOT_TOKEN = "1234567890:ABCDEFGHIJKLMNOPQRSTUVW123456" | |
admin_channel_id = -999999999999 | |
admins = [987654321, 123456789] | |
chats = [-1111111111111] | |
# Allowed chats for AllowedChatsFilter | |
whitelisted_chats = [-999999999999, -888888888888] | |
# Allowed channels for ChannelForwardFilter |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/usr/bin/env python | |
# -*- coding: utf-8 -*- | |
# pylint: disable=W0613, C0116 | |
# type: ignore[union-attr] | |
# This program is dedicated to the public domain under the CC0 license. | |
# Source: https://github.com/python-telegram-bot/python-telegram-bot/blob/master/examples/echobot.py | |
""" | |
Simple Bot to reply to Telegram messages. |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# This script switches the file "creation time" with the file "last modified" time | |
# Scripted by d_Rickyy_b on 11.09.2017 | |
# Telegram: https://t.me/d_Rickyy_b | |
# Usage: scriptName.ps1 [-path] C:\path\to\folder [-filter] "*.txt" | |
# Both parameters are optional! | |
param ( | |
[string]$path = $PSScriptRoot, | |
[string]$filter = "*" | |
) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# Script to convert RGB to HSI | |
import math | |
def rgb_to_hsi(R, G, B): | |
def get_H(): | |
if B < G: | |
return get_c() | |
else: | |
return 360 - get_c() |
NewerOlder