Skip to content

Commit 7c9129b

Browse files
committed
Add tgl_Msg class
1 parent 25ed204 commit 7c9129b

File tree

4 files changed

+427
-102
lines changed

4 files changed

+427
-102
lines changed

‎python-tg.h

+6
Original file line numberDiff line numberDiff line change
@@ -21,6 +21,7 @@
2121
#define __PYTHON_TG_H__
2222

2323
#include <string.h>
24+
#include <Python.h>
2425
#include <tgl/tgl.h>
2526

2627
void py_init (const char *file);
@@ -32,4 +33,9 @@ void py_chat_update (struct tgl_chat *C, unsigned flags);
3233
void py_binlog_end (void);
3334
void py_diff_end (void);
3435
void py_do_all (void);
36+
37+
38+
void py_add_string_field (PyObject* dict, char *name, const char *value);
39+
void py_add_string_field_arr (PyObject* list, int num, const char *value);
40+
void py_add_num_field (PyObject* dict, const char *name, double value);
3541
#endif

0 commit comments

Comments
 (0)