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
# пример отсюда https://www.youtube.com/watch?v=HodO2eBEz_8&t=165s | |
# Гоша Сударь TelegramBot на Python | |
# повторная регистрация не проходить возраст не записывается. | |
# версия от 13 мая 22 делаю по аналогии с ботом в ManyChat | |
import telebot | |
import time | |
from telebot import types #для работы клавиатуры | |
from datetime import datetime | |
import gspread | |
from telebot.types import ReplyKeyboardMarkup |
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
# версия от 14 мая 22 делаю рыбу для отработки перехода по клавиатуре бота | |
import telebot | |
import time | |
from telebot import types #для работы клавиатуры | |
from datetime import datetime | |
import gspread | |
from telebot.types import ReplyKeyboardMarkup | |
from settings import googlesheet_id, token, googlesheet_cluc | |
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
# initial version: http://stackoverflow.com/a/7936523/617185 \ | |
# by Mikhail Kashkin(http://stackoverflow.com/users/85739/mikhail-kashkin) | |
def get_yt_video_id(url): | |
"""Returns Video_ID extracting from the given url of Youtube | |
Examples of URLs: | |
Valid: | |
'http://youtu.be/_lOT2p_FCvA', | |
'www.youtube.com/watch?v=_lOT2p_FCvA&feature=feedu', |