Как сделать чтобы бот не становился в статус ожидания при начале функции bot.delete_message

E

Esawroa

Code:
import time
import telebot

d_time = 60
    
def delete_message(chat_id, message_id):
        time.sleep(d_time)
        bot.delete_message(chat_id, message_id)
@bot.message_handler(commands=['start'])
def online_message(message):
        greeting_message = bot.send_message(message.chat.id, f'start message')
        greeting_message_id = greeting_message1.message_id
        delete_message(message.chat.id, greeting_message_id)

При отправке сообщения /start бот отправляет ответное сообщение, после отправки следующих перестает отвечать, когда выходит время delete_message и удаляется сообщение бот снова отвечает, как сделать чтобы он игнорировал этот delete_message но отправлял сообщения и через время удалялись
 

Unreplied Threads

Dissapearing bugs in 3d perspective

  • David Clark
  • Technology
  • Replies: 0
I just want to finish my 3d modeling of characters in different shapes and sizes but my user perspective shows NOTHING even though my outliner says i have 3 pictures in the viewport[![enter image description here][1]][1]

[1]: https://i.sstatic.net/19FK6dr3.png Cat still frame but impossible to see due to viewport errors

Differential equations analoge of fundamental theorem of symmetric functions

In Gian-Carlo Rota's article "Ten Lessons I Wish I Had Learned Before I Started Teaching Differential Equations", at the end of the third lesson he states a theorem:

"Every differential polynomial in the two solutions of a second order linear differential equation which is independent of the choice of a basis of solutions equals a polynomial in the Wronskian and in the coefficients of the differential equation."

Does anyone have a reference (with proof) for this theorem?

Thank you.

SG90 servos in model railroading

  • Daniel Frolich
  • Physics
  • Replies: 0
I am using SG90 servos as turnout controls for a model railroad controlled by a circuit designed by Peter Elsea. As I hook up more servos, each with it's own controller, there seems to be a feedback problem as the servos begin to chatter and move erratically. Mr. Elsea has not been able to find the problem and I have been advised by others to isolate the servos from the 5vDC 12A power supply. How can I accomplish this inexpensively as there are close to 70 servos involved and multiple power supplies. I am experimenting with using servo testers commercially available but fear the feedback condition will persist.

Does the science work for why my trolls explode?

  • Altarious
  • Social
  • Replies: 0
When they need to regrow a limb or other body parts their metabolism ramps up and is supplemented by nano machines allowing for rapid regeneration and releasing a lot of waste heat in the process. This insane ability makes them a nearly perfect super soldier for the current age. But their biggest weakness is taking too much damage. If their bodies sustain too much injury their healing factor can start to run amok as it tries to heal too much all at once and spirals out of control generating too much heat for the nano machines to keep up with, causing a chain reaction of healing, heat damage, healing and so on until eventually the subject violently explodes.

Basically I'm wondering if the science here works IRL? Would rapid healing cause waste heat to build up and could that cause damage to then accumulate which then results in a chain reaction of healing, heating, healing, heating until a violent explosion happens?

vivo V40e specs and render surface online ahead of launch

  • GSMArena.com - Latest articles
  • Android
  • Replies: 0

vivo V40e specs and render surface online ahead of launch​

gsmarena_000.jpg


Ro 14 September 2024


Vivo is getting ready to launch a new member of its V40 family, the vivo V40e. But even though the name suggests it's a lower-tier phone in its respective lineup, the leaked specs online suggest it shouldn't be overlooked.

gsmarena_000.jpg

The render shows part of the device's design and one of the color options likely called Royal Bronze. It's also clear that the display will be curved and the back design will be largely similar to its siblings.

Vivo's internal testing claims that the display can reach 4,500 nits of peak brightness. Additionally, the V40e will be the slimmest smartphone on the Indian market, but without sacrificing battery life. In fact, the handset is tipped to offer a large 5,500 mAh battery that can charge fast too - 80W over a wire.

Previous leaks suggest that the Dimensity 7300 SoC will power the V40e and will offer at least 8GB of RAM.

The V40e is expected to make its debut in India by the end of September.

Source

Related articles
Total reader comments: 0

ADVERTISEMENT

When an algebra isomorphism preserves positive involution

Let $A$ be a $K$-algebra where $K$ is a field with a unique ordering. We say a $K$-linear involution $*$ is positive if the map $A \to K$ via $a \mapsto tr(a^*a)$ is positive definite with respect to the ordering. Here, $tr(a)$ is the trace of the left multiplication map $a:x \mapsto ax$.

Suppose there is a $K$-algebra isomorphism $$\varphi: A \to B.$$

If there is a unique (up to isomorphism) positive involution in $A$ and $B$, can we say the involution must be preserved by the isomorphism $\varphi$: $$\varphi: (A, *_A) \to (B, *_B)?$$

Motivation:​


My question is motivated from representation theory. When $W$ is a real irreducible representation (irrep) of a finite group $G$, then $D:=End_G(W)$ is a division algebra by Schur's lemma. Additionally, Frobenius theorem on real associative division algebras implies that $D$ is isomorphic to either the reals $\mathbb{R}$, complexes $\mathbb{C}$, or quaternions $\mathbb{H}$. Let's call this isomorphism $\varphi$.

Suppose $W$ is endowed with an $G$-invariant inner product (i.e. $\langle g\cdot u, g\cdot v \rangle=\langle u , v \rangle$ for all $u,v \in W$ and $g \in G$). So, $W$ is an orthogonal irrep, and $D$ has the involution that acts as the adjoint corresponding to the $G$-invariant inner product. We know that $\mathbb{R}$, $\mathbb{C}$, and $\mathbb{H}$ all have involution. Furthermore, they are normed division algebras. The involution is the trivial map in $\mathbb{R}$, complex conjugate in $\mathbb{C}$, and the standard involution in $\mathbb{H}$ $\left((a+ib+jc+dk)^*=a-ib-jc-dk\right).$ We even do not need to define the involution in $\mathbb{R}$, $\mathbb{C}$, and $\mathbb{H}$ because the involution must be positive when we want to correspond involution to adjoint and there is a unique positive involution up to isomorphism in real central division algebras. My original question is how to prove that $\varphi$ preserves involution. Is this even true?

problem with armature after mirroring part of object

first of all, I'm totally new to blender, but couldn't find my answer after searching a lot. here is my problem in blender 4.2: in object edit mode, I've duplicated left shoulder top armor, mirrored, moved over right shoulder.

copied image

now the problem is; in pose mode if i rotate or modify left shoulder bone, that right mirrored armor part is moving too as in image:

bone rotate

I've tried to separate all object parts, then clear all parents from it, re-assign right shoulder bone as parent. but still it move with left shoulder bone as well as right shoulder bone.

any help appreciated.

blender file:

ps: is there anyway to select a bone and see which objects assigned to that bone? I know about weights and vertex groups, but in this object, non assigned to mirrored object.
Top