Skip to content

REPL Bot Request Examples

Andrey Fidrya edited this page Jun 10, 2016 · 2 revisions

REPL Bot Request Examples

  • In real apps use Async versions instead.
  • It is assumed that these variables were set:
let fromId: Int64 = <user id>;
let messageId: Int64 = <message id>;

sendMessage

bot.sendMessageSync(fromId, "Hello")?.prettyPrint()

bot.sendMessageSync(fromId, "Hello", parameters: ["reply_to_message_id": messageId])?.prettyPrint() 
Clone this wiki locally