A bot can help run a group, but only once the group lets it. These blocks all act on other members, which Telegram permits only for an administrator.
Promote the bot first
Add your bot to the group, then promote it to administrator and give it permission to restrict members and to pin messages. Without that, every block below fails, and the flow stops rather than carrying on as if it had worked. This is a setting in Telegram itself, in the group's own administrators list, not something you can grant from here.
What each block does
Mute Member stops someone posting, for a number of minutes or indefinitely, and Remove Mute lets them post again. Kick Member removes someone who is then free to rejoin. Ban Member removes them and blocks them from coming back, permanently or for a set time. Pin a Message pins a message your bot sent, by its message id.
Counting warnings
A warning only means something if it adds up. Use Run Equation on Variable with a per user scope to count them, then a Condition block to act at a threshold: two notices, then a mute, for example. Because the counter is scoped per user, each member has their own, and a command that reports the count shows the person asking their own number.
Say the count out loud in the message. "That is warning 2 of 3" is a warning; "please stop" is not. And give a moderator a way to clear it, with Delete Variable Value alongside Remove Mute, so a resolved problem does not sit on someone's record forever.
Say why
A member who is suddenly unable to post with no explanation reads it as a bug. Send a short message alongside the restriction saying what happened and how long it lasts.
Tip: The Group moderator template wires all of this up: a warn command that escalates to an hour's mute on the third warning, a command to check a record, and one to clear it.