Last call to make your voice heard! Our 2022 Developer Survey closes in less than a week. Take survey.

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
0 answers
30 views

Games inside of (bot?) in telegram

I made something like a bot that connects to random people in some anonymous chats (using telethon) and some random guys can play small games Made this in like 20-25 minutes or something Half a year ...
user avatar
2 votes
0 answers
71 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 ...
user avatar
0 votes
0 answers
73 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. ...
user avatar
6 votes
1 answer
152 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 ...
user avatar
2 votes
1 answer
61 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 ...
user avatar
7 votes
2 answers
1k 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 ...
user avatar
  • 73
2 votes
1 answer
110 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 ...
user avatar
  • 625
2 votes
1 answer
314 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 ...
user avatar
11 votes
1 answer
375 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 ...
user avatar
  • 176
1 vote
1 answer
85 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: ...
user avatar
  • 209
3 votes
1 answer
5k 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 ...
user avatar
1 vote
0 answers
810 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 ...
user avatar
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 ...
user avatar
  • 173
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 /...
user avatar
  • 211
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 ...
user avatar
4 votes
2 answers
833 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 ...
user avatar
2 votes
1 answer
399 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,...
user avatar
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 ...
user avatar
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 (...
user avatar
1 vote
1 answer
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? ...
user avatar
  • 423