Skip to content
#

telegram-bot

telegram logo

Telegram is a non-profit, cloud-based instant messaging service. It offers open source clients for a multitude of operating systems and powerful APIs that allow developers to create their own clients and chat bots.

Here are 4,469 public repositories matching this topic...

telegraf
theMasix
theMasix commented Apr 18, 2020

Context

  • Telegraf.js Version: 3.37
  • Node.js Version: 13.13
  • Operating System: Ubuntu 19.10

Expected Behavior

In the Telegraf documentation in Doc says that the extra parameter can be whatever that official telegram doc has said! So I can be able to send something to bot:

ctx.replyWithAudio(downloadLink, {
        title: mytitle,
core
padhie
padhie commented Nov 29, 2018

Currently to create a command it must be a class with the same name like the command + "Command" in the command directory.
e.g.:
Command -> /foobar
Class -> FooBarCommand

But if you want to start a command with a number or an spezialchar in the commandname you can't create this command.

The idea is that you can set a list of classes and in this class you have a property

EXL
EXL commented Sep 17, 2019

These warnings appear when the Spring application starts:

03:01:22.550 [restartedMain] DEBUG org.telegram.telegrambots.meta.ApiContext - Class org.telegram.telegrambots.meta.generics.BotSession already registered
03:01:22.557 [restartedMain] DEBUG org.telegram.telegrambots.meta.ApiContext - Class org.telegram.telegrambots.meta.generics.Webhook already registered

Is this ok?

telegram-bot-sdk
bugada
bugada commented Mar 14, 2020

According to the documentation in ChatMember class

@method string getStatus() (Optional). The member's status in the chat. Can be “creator”, “administrator”, “member”, “left” or “kicked”

getStatus() should return the member's status, but actually there is a conflicting getStatus() in BaseObject that returns the status of the request.

As a workaround, get('status') re

xewonder
xewonder commented Apr 30, 2020

Install on Ubuntu 18.04.4 LTS to run standalone
(I condense a 14 hour research and headaches into a 5 minutes install)

Make sure you have the latest node.js and npm

Create your bot with @Botfather (/newbot)

add TELEGRAM_TOKEN with the value you got from @Botfather in /etc/environment (TELEGRAM_TOKEN="theToken Value")

apt-get update

apt-get install -y curl gnupg2 git build-essen

igorwebb
igorwebb commented Apr 27, 2019

Прикручиваю библиотеку к фреймворку yii2. Почему-то после того, как я добавил 2ую функцию on() для обработки текста пришедшего сообщение - ответы с первого on() (которая обрабатывает кнопки) приходят по 3 (три) раза... Если убирать вторую on() - работает, как надо - один ответ. Раньше на нативном php такой код работал. На фреймворке что-то магия какая-то...

Код экшна, где лежит бот:

f

Created by Telegram Messenger LLP

Released August 2013

Website
telegram.org
Wikipedia
Wikipedia
You can’t perform that action at this time.