Skip to content

Instantly share code, notes, and snippets.

@worldbeater
Last active February 6, 2019 20:38
Show Gist options
  • Save worldbeater/582ec3875322ec377e9450aef2346530 to your computer and use it in GitHub Desktop.
Save worldbeater/582ec3875322ec377e9450aef2346530 to your computer and use it in GitHub Desktop.
module Program
open System
open Funogram.Bot
/// Handles all Telegram events.
let update context =
context.Update.UpdateId
|> printfn "Received update: %i"
[<EntryPoint>]
let main _ =
startBot {
defaultConfig with
Token = "bot-token"
} update None
|> Async.RunSynchronously
|> ignore
0
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment