Questions tagged [telegram]
Use this tag for questions when developing programs and applications related to the Telegram service. This tag is NOT for support questions about the service itself.
21
questions
11
votes
1
answer
1k
views
A convenient wrapper for Telegram Bot library
I'm working on several projects involving Telegram bots and I've decided to make a library that meets my needs. Basically, there is already a Python library for Telegram bots (...
11
votes
1
answer
474
views
Telegram bot in Haskell using custom monad transformers
Note: I show almost all of my code for completeness, but I really only want the review to focus on Session.hs, Handler.hs, and maybe Controller.hs. I can delete the extra code from the review or ...
10
votes
1
answer
1k
views
State and Borg design patterns used in a Telegram wizard bot
I'm making a sort of a user interface for a telegram bot and my idea was to use State design pattern for making sort of a wizard for all the process, with user inputting data in each step or pressing /...
7
votes
2
answers
3k
views
Python Telegram Quiz Bot
To improve my Python knowledge I started a small coding project: A telegram chat/quiz bot that is based on official questions about basketball rules. The bot reads them from one or multiple ...
7
votes
1
answer
2k
views
JavaScript telegram bot that sends images based on user search
In my freetime, I did this little Telegram bot in Node.js that provides some basic text-based commands and one command where a user can search for an image in order for the bot to send back an image ...
6
votes
1
answer
275
views
Python script which sends telegram message if Raspberry Pi's temperature crosses 60 °C
I need to know if there is any way I can optimize my code so that it does not use 0.6% of my total memory - which is approx. 22.4MB. This is a really small script that runs for as long as the ...
5
votes
1
answer
2k
views
Telegram Rest API client design
I'm working on a "framework" for Telegram bots and right now everything "just works". I'm now in the process of rethinking about what I wrote and one of the things I dislike a lot is how I implemented ...
4
votes
2
answers
1k
views
Telegram Bot that retrieves book information from GoodReads
The project below is about a Telegram bot that implements both inline and offline modes. The idea is to get a brief info about a book, searched by title(it's author, rating, short description). I ...
3
votes
1
answer
13k
views
Simple C++ Telegram Bot
Hi :) I am a beginner coder who just learnt C++ and I wanted to apply it in projects to solidify my learning process. However, I only took a short tutorial before trying this out hence I'm pretty ...
2
votes
1
answer
179
views
Stack Exchange Marathon Bot – Part 1: Bot structure
This code review is for my Stack Exchange Marathon Bot project, a Telegram bot for playing a dumb little game involving the Stack Exchange network. Since the codebase is not that small, in this post I ...
2
votes
1
answer
435
views
Telegram bot that retrieves news articles based on user requests
This code is for a Telegram bot I created. Basically if the user types in Whats the news,Whats the technology news,...
2
votes
1
answer
727
views
The right way to implement multiple commands in a Telegram bot
I started coding two months ago and as my first project I wrote a Telegram bot in Java. The purpose of the bot is to perform various tasks related to the Yugioh TCG (such as searching for cards in a ...
2
votes
1
answer
105
views
Optimizing telegram bot
I was working on one telgram bot, and when finally i made everything i discovered that it is extremely slow.
def s takes 5-7 seconds to get result and send it to user, i tried to optimise it with ...
2
votes
1
answer
862
views
How to optimize my telegram bot written in Python?
I have written a fairly simple bot that provides information or additional choice based on the user's query. It runs well and does the job, however, I was wondering how can I optimize my code and use ...
2
votes
1
answer
1k
views
The Telegram bot for book information
Telegram Bot that retrieves book information from GoodReads
I've created a Telegram bot that implements the inline/offline modes to get the brief info about a book, searched by title(inline mode) or ...
2
votes
0
answers
88
views
Bot gets data of sitemap, parses it and send message to Telegram channel
UPDATED - 25-12-2021
Summary:
Renamed start.py --> bot.py
Modified a lot of code in bot.py
Modified code in sitemap.py
Created init.py
Check the update code in the bottom of this question.
I ...
1
vote
1
answer
94
views
Telegram YouTube upload video notification Bot
I made a simple script that notifies a Telegram Channel when a new youtube video is uploaded upon a YouTube channel:
index.php
...
1
vote
1
answer
111
views
Casting calls with the same parent class
I'm using Telegram API and I've different methods which returns different type of information like this:
...
1
vote
1
answer
2k
views
A wrapper class for Telegram bot API in PHP
I wrote a wrapper class in PHP to use Telegram bot API. What do you think about it?
I used this class in some projects and it doesn't have any problem but I want to know if it is optimized?
...
1
vote
0
answers
1k
views
Automatically checking argument types in commands of a Telegram bot
I am writing a simple Telegram bot in Python 3 using the python-telegram-bot library. A command is a Telegram message that looks ...
0
votes
1
answer
134
views
Validating an input in a chatbot
Is this a good approach for validating user input in a chatbot? I am writing an autoposter telegram bot in PHP using the php-telegram-bot library (by Longman). I have a Task class that stores ...