-
Как вызвать бота? В
Telegram
ник@oshlibot
-
Как запустить своего бота? Скопировать код. Получить [
apikey
][BotFather link]. Добавитьapikey
в свойства скрипта. Опубликовать скрипт как веб-приложение для всех. Запустить вручнуюsetWebhook()
из модуляScriptService.gs
-
Важно. В настройках необходимо в свойства скрипта добавить
apikey
-
Как получить
apikey
? Необходимо спросить у [@BotFather][BotFather link] -
Какие бывают способы доступа для бота? Два метода API определяют будущее поведение приложения: [getUpdates][getUpdates link] или [setWebhook][setWebhook link]
-
@oshlibot
использует подписку на [Webhooks][setWebhook link]
This file contains hidden or 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 python3 | |
#----------------------------------------------- | |
# used to swallow a terminal window in i3 | |
# | |
# INSTALL | |
# Install python 3 and install i3ipc libary | |
# pip3 install i3ipc | |
# download this scrript and put it to your i3 config folder and run |