-
Notifications
You must be signed in to change notification settings - Fork 675
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
send automatic message for all user and group with telegram bot #20
Comments
You should get the Telegram or this SDK doesn't support that. |
THANKS A LOT FOR YOUR ANSWER |
Welcome! |
hi,i have a question about telegram. |
Use |
hi, i want put 6 button (add phone number,add state ,...) and i know when user chose add phone number and i get the answer of user i update the row of home table that relation with specifiable user and refresh the the php file for bot but i wand know how can understand this answer of user for this push button (add phone number) because i get a text and only i can manage text like your example that start my work that i think i want relation of message that output of sendmessage and answer of get from user i wand know has any function do this work like this ? |
in telegram bot (php) On Mon, Aug 31, 2015 at 12:11 AM, Syed Irfaq R. notifications@github.com
|
How about you use arguments? Like if a user sends Likewise, You can have commands for other things too. |
You could also do the following: Store the state into the database, Basically you would have to store things like when you ask a question, add a record into database and when a user sends you any input, you can validate that input and associate that with the question if validation passes. But if it fails, You can still continue to expect answer from the user. In the event in which the user sends any other command, You can end that question and continue with the other task. And if the answer is fine, store the record and continue with another question and so on. |
thanks for your answer |
Can I use bot to receive all group messages? Currently my bot could only receive message directly sent to it even in a group. |
@yuanlu-0 Yes, Refer privacy mode here: https://core.telegram.org/bots#privacy-mode It allows you to receive all the messages in a group chat where your bot is added. |
Hello, I would like to know if there is any way to make this happen. So I got two group chats in telegram, and the thing is when someone sends any message on one of them, I would like for to telegram to automatically send it to the other group, is that possible? Is there any there any way to make it happen?? |
@falete14 You'll have to program the bot to get all messages from Group A using a webhook and then send messages to Group B. It's possible but you have to code it. |
First, thanks so much for answering, but doing it that way, will it get all the NEW messages everytime or it will only get the messages for ONCE? |
Everytime. Depends on how you set it up. If you setup a webhook, As soon as there's a new message in a group, it'll send the same to your bot which can then instantly send to your another group. So the flow would be there always. |
Thanks again! Okay I see now. So the flow would be group A to bot to group B. And also If A is a private group, but I´m part of it, but I only have its name, that way it will be impossible to make this work, right? |
As long as it has your bot added and privacy mode is properly set. It shouldn't matter. |
okaaay I understand! Thanks |
be careful because if many users reports you or your bot have been sending "unrequested messages" you might get in trouble! |
hello |
@irazasyed Hello i am new and fresher with work on telegram bot with c#. i am just create one demo for send image with caption in the group on telegram bot.and i am getting success. but now i want to create one chat module in the bot. i have create one bot on the telegram bot. the name is bot of "Abc". and i have also token key for this bot. now i want to create one chat module in the "Abc" bot. for ex. i want to first show list of user in the bot. and suppose i am user then i am go in the bot show list of user and choose any one user and then that time chat is start with who i ma select user in the bot. so it's possible with c#? any one have the idea then please guide with the best wave. |
@Coderwill Unfortunately, I'm not into C# nor this SDK is for C# devs. You might wanna search for some other library or project that supports it. |
@amirzx24 This is not a C# project. Please search for one on GitHub and check with their project. Can't be of any help, unfortunately. |
سلام.وقت بخیر میخواستم یه بانک شماره موبایل های فعال تلگرام تهیه کنم اگر ممکنه کمکم کنید.با تشکر |
@irazasyed i want the bot to be able to send a welcome message to all new users that arrive, but don't want all the members to see it, but only the new members that arrive. is there a way to do this? |
Hello, |
I am unable to run Telegram Auto software. It is creating some error. Please Help me. |
I am new to Telegram, but is it possible to send a message to a group I create via php? |
@coverman62 you can use the normal sendMessage method to send a message to a group. |
Hola, como puedo mandar mensajes programados a todos los grupos, donde se encuentre mi bot |
Hi, how can i possibly write a bot to automatically send messages from telegram to a specific whatsapp group....... Please any ideas? |
Whatsapp does not deserve this, but there are whatsapp bridges out there, Have a look around. |
Sir, I am really happy you reach out to me with your problem. I have a
program that automatically reads new posts of telegram channels and post to
a specific whatsapp group
…On Jan 1, 2019 00:20, "Ashu" ***@***.***> wrote:
Hi, how can i possibly write a bot to automatically send messages from
telegram to a specific whatsapp group....... Please any ideas?
Whatsapp does not deserve this, but there are whatsapp bridges out there,
Have a look around.
—
You are receiving this because you commented.
Reply to this email directly, view it on GitHub
<#20 (comment)>,
or mute the thread
<https://github.com/notifications/unsubscribe-auth/Aq2vaqhZXDcc8w4JPLTJMA5F_PyrScoxks5u-pvTgaJpZM4Fu4G->
.
|
is there a way to get chat_id in python with pytelegrambotapi module |
I must ask, even if I store the chat_id of all users in my database. How do I send them a message in 1 go? Or will I have to manually send them one by one? |
This issue is closed. Please make a new issue if you want. To answer quickly: you need to send a message to every user separate. I would do this with qeueuing to be sure your app does not hang during sending. You also need some try catch procedure if ppl have blocked your bot. In that case Telegram code will crash. |
It not possible to send at once. It is going to have to work in a loop.
…On Thu, Apr 16, 2020 at 11:42 AM Robbert ***@***.***> wrote:
This issue is closed. Please make a new issue if you want. To answer
quickly: you need to send a message to every user separate. I would do this
with qeueuing to be sure your app does not hang during sensing. You also
need some try catch procedure if ppl have blocked your bot. In that case
Telegram code will crash.
—
You are receiving this because you commented.
Reply to this email directly, view it on GitHub
<#20 (comment)>,
or unsubscribe
<https://github.com/notifications/unsubscribe-auth/AKW262XSA4LHVO6PGBHFCEDRM4RPVANCNFSM4BN3QG7A>
.
|
i want put a part in my bot that when user want from my bot send new data automatic (with link or command for active this)
when i put a new record in my table of database my bot send this new record in message for all user that want give this data automatic
it is my work that i will do it
and now my question is:
telegram bot has function or part for manage this work
or
i should get user_id when active this part and save id in the table and when i create new record i send new message for all user that i save the id in the table and do this work with programming?
The text was updated successfully, but these errors were encountered: