lua-telegram-bot


How to create a group chat with tg and telegram-cli


i am trying to set up a custom bot with telegram-cli (https://github.com/vysheng/tg) and Cloud9. Working fine so far but i cant get the "create_group_chat" argument running. Maybe someone has a clue?
ps.: i am not a developer. sorry if the code is total shit!
do
local function callback(extra, success, result)
vardump(success)
vardump(result)
end
local function run(msg, matches)
local chat topic = matches[1]
-- Topic
if matches[1] == "topic" then
chat topic = string.gsub(" ")
end
end
local function run(msg, matches)
local user = matches[2]
-- User 1
if matches[1] == "name" then
user = string.gsub(user," ","_")
end
-- User 2
if matches[1] == "name" then
user = string.gsub(user," ","_")
end
-- Create Groupchat
local function run (msg, matches)
create_group_chat(chat topic, user1, user2, callback, false)
return "Add: "..user.." to "..chat
end
return {
description = "explenation",
usage = {
"!creategroup topic [topic] [user_name1] [user_name2] [user_name3]"
},
patterns = {
"^!creategroup topic (topic) (name1) (name2) (name3) (.*)$"
},
run = run
}
end

Related Links

How to create a group chat with tg and telegram-cli

Categories

HOME
shell
sonarqube
dns
pclxl
javacc
database-normalization
scripting
onclick
ado.net
jetty
cmdb
nancy
package.json
powershell-v5.0
null-pointer
html5-appcache
sse
joptionpane
tosca
jquery-callback
direct3d11
comparator
angularjs-components
8051
tizen-tv
panoramas
kudu
glib
hibernate-validator
erb
installshield-le
pop3
nested-lists
python-import
modalviewcontroller
browser-extension
fiware-cygnus
sim-toolkit
reason
timing
bc
linq-to-objects
typesafe-config
mongoose-schema
procfile
phpdbg
jide
chai-as-promised
user-defined-fields
activeperl
mongotemplate
carrot2
aquamacs
android-testing
trigger.io
restore
donations
mapxtreme
tinkerpop3
model-associations
jquery-jscrollpane
i386
synonym
observablecollection
embedding
kiosk
phpwebsocket
thread-sleep
realsense
flock
extjs-grid
rdflib
teamcity-9.1
formview
appserver
live555
radiant
cfcache
koala
qscrollarea
conditionaltagsupport
unit-of-work
kaleidoscope
abstract-data-type
css-reset
android-icons
superscrollorama
swfobject
fb.ui
frameworkelementfactory
monotouch.dialog
iboutlet
objectquery
multiplexing
hibernateexception
urlrewriter
jqote
xui
skype4java
complex-event-processing
java1.4
cardspace

Resources

Encrypt Message