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.

Filter by
Sorted by
Tagged with
0
votes
0answers
21 views

Building an array of KeyboardButton objects in a ReplyKeyBoardMarkup for a Telegram Bot

I asked my original question and based on the answers got a version working. Essentially, I created a reply keyboard from the available product codes in my database table, with one button per row. ...
6
votes
1answer
92 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 ...
2
votes
1answer
51 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 ...
7
votes
2answers
678 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 ...
2
votes
1answer
88 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
1answer
203 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 ...
12
votes
1answer
283 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 ...
1
vote
1answer
82 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: ...
3
votes
1answer
3k 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 ...
1
vote
0answers
628 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 ...
7
votes
1answer
1k 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 ...
10
votes
1answer
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 /...
2
votes
1answer
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 ...
4
votes
2answers
810 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 ...
2
votes
1answer
394 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,...
5
votes
1answer
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 ...
11
votes
1answer
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 (...
1
vote
1answer
1k 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? ...