Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
T
tg
Project
Project
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Administrator
tg
Commits
be1ac1f4
Commit
be1ac1f4
authored
Jun 25, 2015
by
vvaltman
Browse files
Options
Browse Files
Download
Plain Diff
Merge github.com:vysheng/tg
parents
6c4c76bd
c1edf441
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
29 additions
and
0 deletions
+29
-0
python-types.c
python-types.c
+29
-0
No files found.
python-types.c
View file @
be1ac1f4
...
@@ -406,6 +406,34 @@ tgl_Peer_send_msg (tgl_Peer *self, PyObject *args, PyObject *kwargs)
...
@@ -406,6 +406,34 @@ tgl_Peer_send_msg (tgl_Peer *self, PyObject *args, PyObject *kwargs)
}
}
static
PyObject
*
tgl_Peer_fwd_msg
(
tgl_Peer
*
self
,
PyObject
*
args
,
PyObject
*
kwargs
)
{
static
char
*
kwlist
[]
=
{
"callback"
,
NULL
};
int
fwd_id
=
0
;
PyObject
*
callback
=
NULL
;
if
(
PyArg_ParseTupleAndKeywords
(
args
,
kwargs
,
"i|O"
,
kwlist
,
&
fwd_id
,
&
callback
))
{
PyObject
*
api_call
;
if
(
callback
)
api_call
=
Py_BuildValue
(
"OiO"
,
(
PyObject
*
)
self
,
fwd_id
,
callback
);
else
api_call
=
Py_BuildValue
(
"Oi"
,
(
PyObject
*
)
self
,
fwd_id
);
Py_INCREF
(
Py_None
);
Py_XINCREF
(
api_call
);
return
py_fwd
(
Py_None
,
api_call
);
}
else
{
PyErr_Print
();
Py_XINCREF
(
Py_False
);
return
Py_False
;
}
}
static
PyObject
*
static
PyObject
*
tgl_Peer_send_typing
(
tgl_Peer
*
self
,
PyObject
*
args
,
PyObject
*
kwargs
)
tgl_Peer_send_typing
(
tgl_Peer
*
self
,
PyObject
*
args
,
PyObject
*
kwargs
)
{
{
...
@@ -932,6 +960,7 @@ static PyMethodDef tgl_Peer_methods[] = {
...
@@ -932,6 +960,7 @@ static PyMethodDef tgl_Peer_methods[] = {
{
"send_contact"
,
(
PyCFunction
)
tgl_Peer_send_contact
,
METH_VARARGS
|
METH_KEYWORDS
,
""
},
{
"send_contact"
,
(
PyCFunction
)
tgl_Peer_send_contact
,
METH_VARARGS
|
METH_KEYWORDS
,
""
},
{
"send_location"
,
(
PyCFunction
)
tgl_Peer_send_location
,
METH_VARARGS
|
METH_KEYWORDS
,
""
},
{
"send_location"
,
(
PyCFunction
)
tgl_Peer_send_location
,
METH_VARARGS
|
METH_KEYWORDS
,
""
},
{
"mark_read"
,
(
PyCFunction
)
tgl_Peer_mark_read
,
METH_VARARGS
|
METH_KEYWORDS
,
""
},
{
"mark_read"
,
(
PyCFunction
)
tgl_Peer_mark_read
,
METH_VARARGS
|
METH_KEYWORDS
,
""
},
{
"fwd_msg"
,
(
PyCFunction
)
tgl_Peer_fwd_msg
,
METH_VARARGS
|
METH_KEYWORDS
,
""
},
{
NULL
}
/* Sentinel */
{
NULL
}
/* Sentinel */
};
};
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment