К основному контенту

Сообщения

Показаны сообщения с ярлыком "Telegram bot"

Telegram bot with Google Apps Script

I decided to clone one of my previous post in Russian. I noticed that people from different countries visit that post from Github repository with the code. So, I guess some of them were dissapointed by that fact they were not able to read the details. Here I'll just translate the post in English. No any new details. In this post I'll provide some useful details of how to host  your Telegram bot with help of Google Apps Script. There are tons of similar posts (good and bad) in Internet. That's why I'm not going to describe every step. Then someone may raise a question: "Why then write a post?" So, the answer is even you find the best article and copy code from there likely it will not work :) Only many of good articles plus Telegram API documentation plus (obviously) StackOverflow will ensure the results. I'll try to summarize some pitfalls here. Hope it will save your time. NB! developers always change the API, so have in mind that this post wa...

Indoor air quality and IoT

This post is just an introduction to a series of publications about a custom indoor air quality device connected to IoT back-end.  (I hope, I'll be able to manage my laziness  and procrastination) The publications will describe a whole ecosystem which includes a sensing device, IoT cloud service, back-end and Telegram bot to get aware about your indoor air quality. Also maybe I'll ad something about the analysis of data.  Look at the picture below, this is a better explanation of the ecosystem than description by words. In the next posts I'll explain how to build your own sensing device to measure the quality of indoor air, what are the most relevant air quality parameters compared to well-known outdoor air quality, which sensors available on mass market are most suitable to measure those parameters. There are many tricky questions here. How the optical particulate sensors measure the weight of particles? Why it seems to make not that much sense to meas...

Telegram bot и Google Apps Script

Короткий пост, полный  полезных лайфхаков  тривиальных советов о том, как сделать хостинг Telegram бота с помощью Google Apps Script. В сети есть миллионы статей, плохих и хороших, о том, как создать бота в Telegram и как развернуть приложение на Google Script. Поэтому подробных описаний как всё это делать, не будет. Зачем тогда этот пост? Затем, что даже выбрав самую лучшую статью и скопировав оттуда код, ничего не взлетит (скорее всего). И только прочтение нескольких хороших статей, комментариев на stackoverflow и документации API телеграма и гугла, дадут результат. Чтобы сэкономить время на более интересные задачи, здесь я соберу несколько деталей, которые позволят быстро понять, почему не взлетают copy-paste примеры. Разработчики меняют API, чтобы подставить новый костыль сделать мир лучше, поэтому следует учитывать, что описываемые в посте особенности актуальны на февраль 2020. Итак, базовая последовательность действий, хорошо описанная в интернетах: ...