Telegram Bot API

by fenix

9

godot-engine.telegram-bot-api

A GDScript addon to interact with a Telegram Bot in Godot Engine.

extends Node

func _ready():
    var bot : TelegramBot = TelegramAPI.get_bot("<YOUR BOT TOKEN>")
    bot.connect("new_event", self, "_on_bot_event")
    bot.start_polling(1.0)
    bot.send_message(TelegramMessage.new("<CHAT ID>", "_Test Message_", TelegramMessage.ParseModes.MARKDOWN))

func _on_bot_event(event : Dictionary) -> void:
    print(event)

Version

1.0

Engine

3.3

Category

Misc

Download

Version1.0
Download

Support

If you need help or have questions about this plugin, please contact the author.

Contact Author