Created
February 27, 2017 15:58
-
-
Save lattenwald/0ae84513bb2fc3b49dd08bf6e213c128 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
defmodule Tgbot.IntegralTest do | |
@token "some token" | |
@endpoint "my endpoint" | |
use Tgbot, endpoint: @endpoint, token: @token | |
require Logger | |
message msg do | |
IO.inspect msg | |
IO.inspect conn | |
reply "Got a message from you: #{msg}" | |
conn | |
end | |
edited_message msg do | |
IO.inspect msg | |
IO.inspect conn | |
conn | |
end | |
channel_post msg do | |
IO.inspect msg | |
IO.inspect conn | |
conn | |
end | |
edited_channel_post msg do | |
IO.inspect msg | |
IO.inspect conn | |
conn | |
end | |
callback_query query do | |
IO.inspect query | |
IO.inspect conn | |
conn | |
end | |
inline_query query do | |
IO.inspect query | |
IO.inspect conn | |
conn | |
end | |
chosen_inline_result rslt do | |
IO.inspect rslt | |
IO.inspect conn | |
conn | |
end | |
end |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment