Skip to content

Add new send_*_reply Lua functions - #982

Open
janglapuk wants to merge 1 commit into
vysheng:masterfrom
janglapuk:patch-1
Open

Add new send_*_reply Lua functions#982
janglapuk wants to merge 1 commit into
vysheng:masterfrom
janglapuk:patch-1

Conversation

@janglapuk

Copy link
Copy Markdown

Hi @vysheng,

Without touching the original functions, I've added additional functions for several send_* functions in lua-tg.c, as listed below:

  1. send_msg_reply()
  2. send_photo_reply()
  3. send_video_reply()
  4. send_text_reply()
  5. send_audio_reply()
  6. send_document_reply()
  7. send_file_reply()

All the first function parameters is replied message ID as an integer value, eg:

local reply_id = msg['id']
send_msg_reply(reply_id, 'Hello too!', ok_cb, false)

Hope all of you 👍 it 😄

@kenorb

kenorb commented Feb 3, 2019

Copy link
Copy Markdown

Dup of: GH-1092

  {"reply_audio", lq_send_audio, {lfp_msg, lfp_string, lfp_none}},
  {"reply_document", lq_reply_document, {lfp_msg, lfp_string, lfp_none}},
  {"reply_file", lq_reply_file, {lfp_msg, lfp_string, lfp_none}},
  {"reply_msg", lq_reply, { lfp_msg, lfp_string, lfp_none }},
  {"reply_photo", lq_reply_photo, {lfp_msg, lfp_string, lfp_none}},
  {"reply_video", lq_reply_video, {lfp_msg, lfp_string, lfp_none}},

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants