telega/api

It’s internal module for working with Telegram API, not for public use.

Functions

pub fn send_message(
  chat_id chat_id: Int,
  text text: String,
  token token: String,
  telegram_url telegram_url: String,
) -> Result(Response(String), String)

Official reference: https://core.telegram.org/bots/api#sendmessage

pub fn set_webhook(
  token token: String,
  webhook_url webhook_url: String,
  telegram_url telegram_url: String,
  secret_token secret_token: Option(String),
) -> Result(Response(String), String)

Official reference: https://core.telegram.org/bots/api#setwebhook

Search Document