aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAdrian Kummerlaender2016-03-11 12:25:13 +0100
committerAdrian Kummerlaender2016-03-11 12:26:24 +0100
commitc5dbb98ee5639883676414e4948923de46ba0a5d (patch)
treebbe0d34c965a8ce0634fdfd1fa8abc2a0da6f206
parent4de7383ed16f9908c34afb893374f4dd01fbfc06 (diff)
downloadTelebot-c5dbb98ee5639883676414e4948923de46ba0a5d.tar
Telebot-c5dbb98ee5639883676414e4948923de46ba0a5d.tar.gz
Telebot-c5dbb98ee5639883676414e4948923de46ba0a5d.tar.bz2
Telebot-c5dbb98ee5639883676414e4948923de46ba0a5d.tar.lz
Telebot-c5dbb98ee5639883676414e4948923de46ba0a5d.tar.xz
Telebot-c5dbb98ee5639883676414e4948923de46ba0a5d.tar.zst
Telebot-c5dbb98ee5639883676414e4948923de46ba0a5d.zip
Remove reply parameter from echo-bot example
-rw-r--r--bot.scm10
1 files changed, 4 insertions, 6 deletions
diff --git a/bot.scm b/bot.scm
index bbd658d..1d556f2 100644
--- a/bot.scm
+++ b/bot.scm
@@ -31,13 +31,11 @@
")"))
(define (echo-message msg)
- (let ((chat_id (resolve-query (list 'message 'from 'id) msg))
- (text (resolve-query (list 'message 'text) msg))
- (message_id (resolve-query (list 'message 'message_id) msg)))
+ (let ((chat_id (resolve-query (list 'message 'from 'id) msg))
+ (text (resolve-query (list 'message 'text) msg)))
(telebot:sendMessage token
- chat_id: chat_id
- text: text
- reply_to_message_id: message_id)))
+ chat_id: chat_id
+ text: text)))
(do-forever
(updates-for-each (lambda (u)