If the user at any stage enters Quit at any stage, the program should stop prompting the user for a certain word - break

Write a program that prompts the user for the user for their five favourite movies. Store each
movie in a list. If the user at any stage enters Quit at any stage, the program should stop
prompting the user for the movie name and should print to the screen the movies captured in
the list up to that point.

Related

Getting member id of a specific member in telegram group

I have a telegram bot that can do several tasks in my telegram group.
I want to add a new task that can count the number of messages a specific user sends in a group.
Every time it will be updated, Let say a user name drhunter, if he sends a message then it will save in a text file as,
drhunter 1 for the next message will be updated to drhunter 2 and so on.
I can do it using telegram username but If a user hasn't set username then occurs a problem. It shows None
I get username using message.from_user.username
I use username & count the number of messages each time then save it in a file. Like this
count.txt
drhunter 5
drhunter2 45
Is there any way to do this? or more specifically is there any way to identify a telegram user without their username (inside a telegram group)?
Use the id instead, which is a unique identifier for the user independent of whether the user has a username.

Is it possible to write a bot that repeats all messages of a specific group member?

So that whenever my group member Bob writes a message, the bot immediatly copies it (echoing him)?

How to disable unnecessary notifier

So I'm trying to create some ride sharing app. So when user enters required info (form dest to dest date) if this kind of trip exist in database one should be redirected to the next screen but if any of the mandatory fields (from dest to dest trip date) are not equal to already created trip offers one should get a notifier that there are no offered trips for this destination at certain date and user should fill ride request form by clicking on create trip button. So when all parameters are ok new screen opens but notifier user is anyway notified that trip doesn't exist. Please see attached graph from my code.
enter image description here

How to make auto respond bot to new member joined in groups without type command

How to make auto respond bot to new member joined in groups without type command?
Look at this picture:
Bot send new text when users joined in groups
When a user is added to a group, an update is sent to the bot. In it message field, there is another field, called new_chat_members, that contains an array of User objects that were added to the group. You should send the appropriate message when such an update is received. (You can use information provided in User objects to get information about those users, e.g. Their name, to include it into your message.)

Gravityform registration add-on update user feed

I'm using gravity form registration add-on to create users with a specific role X, I used a (create user) feed for this and assigned it to this role. Now I need the current user with role X to Update his role to Z, I going to create a form with (update user feed). The issue I face is, I don't want the user to be updated automatically, I need the same manual activation function exist in (create user feed)
so the sequence going to be after the user X submit the form I going to show him a confirmation message telling him to wait until we validate his request

Resources