Skip to content

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

License

Notifications You must be signed in to change notification settings

fenix-hub/godot-engine.telegram-bot

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

2 Commits
 
 
 
 
 
 
 
 

Repository files navigation

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)

About

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

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published