@bot.channel_post_handler(content_types=['text','photo','audio','video','document'])
def process_channel_message(message):
for chat_id in array_of_your_user_chat_ids:
bot.forward_message(chat_id, message.chat.id, message.id)
$ echo 'int main(){ printf("Hello, World\n"); }' > xxx.c
$ gcc -static xxx.c -o xxx
xxx.c: In function ‘main’:
xxx.c:1:13: warning: implicit declaration of function ‘printf’ [-Wimplicit-function-declaration]
int main(){ printf("Hello, World\n"); }
^~~~~~
xxx.c:1:13: warning: incompatible implicit declaration of built-in function ‘printf’
xxx.c:1:13: note: include ‘<stdio.h>’ or provide a declaration of ‘printf’
$ ./xxx
Hello, World
$ ls -l xxx
-rwxrwxr-x 1 shurik shurik 844696 авг 13 22:04 xxx
$ ldd ./xxx
не является динамическим исполняемым файлом